Sha256: cb239942f1edce736134cda6bfa017980f8875f0128f53dce90153a250d697cd

Contents?: true

Size: 693 Bytes

Versions: 265

Compression:

Stored size: 693 Bytes

Contents

/** Used for built-in method references. */
var arrayProto = 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 _
 * @since 4.0.0
 * @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 == null ? '' : nativeJoin.call(array, separator);
}

module.exports = join;

Version data entries

265 entries across 263 versions & 29 rubygems

Version Path
govuk_publishing_components-17.15.0 node_modules/lodash/join.js
govuk_publishing_components-17.14.0 node_modules/lodash/join.js
govuk_publishing_components-17.13.0 node_modules/lodash/join.js
govuk_publishing_components-17.12.2 node_modules/lodash/join.js
govuk_publishing_components-17.12.1 node_modules/lodash/join.js
govuk_publishing_components-17.12.0 node_modules/lodash/join.js
govuk_publishing_components-17.11.0 node_modules/lodash/join.js
govuk_publishing_components-17.10.0 node_modules/lodash/join.js
govuk_publishing_components-17.9.0 node_modules/lodash/join.js
govuk_publishing_components-17.8.0 node_modules/lodash/join.js
govuk_publishing_components-17.7.0 node_modules/lodash/join.js
govuk_publishing_components-17.6.1 node_modules/lodash/join.js
govuk_publishing_components-17.6.0 node_modules/lodash/join.js
govuk_publishing_components-17.5.0 node_modules/lodash/join.js
govuk_publishing_components-17.4.0 node_modules/lodash/join.js
govuk_publishing_components-17.3.0 node_modules/lodash/join.js
govuk_publishing_components-17.2.0 node_modules/lodash/join.js
govuk_publishing_components-17.1.1 node_modules/lodash/join.js
govuk_publishing_components-17.1.0 node_modules/lodash/join.js
govuk_publishing_components-17.0.0 node_modules/lodash/join.js