X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Funcss%2Fnode_modules%2Flodash%2Fjoin.js;fp=node_modules%2Funcss%2Fnode_modules%2Flodash%2Fjoin.js;h=1aabc0718c3aed02778e74a482c838b53d1ca1c6;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/uncss/node_modules/lodash/join.js b/node_modules/uncss/node_modules/lodash/join.js new file mode 100644 index 000000000..1aabc0718 --- /dev/null +++ b/node_modules/uncss/node_modules/lodash/join.js @@ -0,0 +1,25 @@ +/** Used for built-in method references. */ +var arrayProto = global.Array.prototype; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeJoin = arrayProto.join; + +/** + * Converts all elements in `array` into a string separated by `separator`. + * + * @static + * @memberOf _ + * @category Array + * @param {Array} array The array to convert. + * @param {string} [separator=','] The element separator. + * @returns {string} Returns the joined string. + * @example + * + * _.join(['a', 'b', 'c'], '~'); + * // => 'a~b~c' + */ +function join(array, separator) { + return array ? nativeJoin.call(array, separator) : ''; +} + +module.exports = join;