Join any number of args, using the last arg as the seperator.
npm install helper-join> Join any number of args, using the last arg as the seperator.
``bash`
npm i helper-join --save-dev
`js`
var helper = require('helper-join');
Join any number of args, using the last arg as the seperator.
* arguments {Array|String}separator
* {String}
* returns: {String}
Examples:
Join strings:
`js
join('a', 'b', '-');
//=> 'a-b'
`
Join arrays:
`js
join(['a', 'b'], '_');
//=> 'a_b'
`
Mixed:
`js
join(['a', 'b'], ['c', 'd'], 'e', '|');
//=> 'a|b|c|d|e'
`
If you use Assemble (v0.6.x), to register the helper for use with any template engine:
`js`
var assemble = require('assemble');
assemble.registerHelper('join', require('helper-join'));
To use as a handlebars helper in non-Assemble projects:
`js``
var Handlebars = require('handlebars');
Handlebars.registerHelper('join', require('helper-join'));
Jon Schlinkert
+ github/jonschlinkert
+ twitter/jonschlinkert
*
_This file was generated by verb-cli on August 16, 2014._