Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / join.js
1 /** Used for built-in method references. */
2 var arrayProto = Array.prototype;
3
4 /* Built-in method references for those with the same name as other `lodash` methods. */
5 var nativeJoin = arrayProto.join;
6
7 /**
8  * Converts all elements in `array` into a string separated by `separator`.
9  *
10  * @static
11  * @memberOf _
12  * @category Array
13  * @param {Array} array The array to convert.
14  * @param {string} [separator=','] The element separator.
15  * @returns {string} Returns the joined string.
16  * @example
17  *
18  * _.join(['a', 'b', 'c'], '~');
19  * // => 'a~b~c'
20  */
21 function join(array, separator) {
22   return array ? nativeJoin.call(array, separator) : '';
23 }
24
25 module.exports = join;