Sha256: 4a828cecfb989f5ec5dfb5627c98a49e90ff7d1249c4910ef2de74cd8c677a85

Contents?: true

Size: 454 Bytes

Versions: 303

Compression:

Stored size: 454 Bytes

Contents

/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */
function copyArray(source, array) {
  var index = -1,
      length = source.length;

  array || (array = Array(length));
  while (++index < length) {
    array[index] = source[index];
  }
  return array;
}

module.exports = copyArray;

Version data entries

303 entries across 279 versions & 33 rubygems

Version Path
rapid_stack-0.2.0 templates/frontend/node_modules/lodash/_copyArray.js
rapid_stack-0.1.1 templates/FrontEnd/node_modules/lodash/_copyArray.js
rapid_stack-0.1.0 templates/FrontEnd/node_modules/lodash/_copyArray.js
immosquare-cleaner-0.1.60 node_modules/lodash/_copyArray.js
immosquare-cleaner-0.1.59 node_modules/lodash/_copyArray.js
immosquare-cleaner-0.1.58 node_modules/lodash/_copyArray.js
immosquare-cleaner-0.1.57 node_modules/lodash/_copyArray.js
immosquare-cleaner-0.1.56 node_modules/lodash/_copyArray.js
immosquare-cleaner-0.1.55 node_modules/lodash/_copyArray.js
immosquare-cleaner-0.1.54 node_modules/lodash/_copyArray.js
immosquare-cleaner-0.1.53 node_modules/lodash/_copyArray.js
immosquare-cleaner-0.1.52 node_modules/lodash/_copyArray.js
trusty-cms-6.3.1 node_modules/lodash/_copyArray.js
immosquare-cleaner-0.1.51 node_modules/lodash/_copyArray.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/_copyArray.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/_copyArray.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/_copyArray.js
immosquare-cleaner-0.1.50 node_modules/lodash/_copyArray.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/_copyArray.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/_copyArray.js