Sha256: 46ca747f555bd0f7399eb6f8c221be73df5292bf1c57ad987214c65f4e0784dc

Contents?: true

Size: 454 Bytes

Versions: 167

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 arrayCopy(source, array) {
  var index = -1,
      length = source.length;

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

module.exports = arrayCopy;

Version data entries

167 entries across 87 versions & 9 rubygems

Version Path
ilog-0.4.1 node_modules/babel-plugin-proto-to-assign/node_modules/lodash/internal/arrayCopy.js
ilog-0.4.1 node_modules/contents/node_modules/lodash/internal/arrayCopy.js
ilog-0.4.1 node_modules/babel/node_modules/lodash/internal/arrayCopy.js
ilog-0.4.0 node_modules/babel-plugin-proto-to-assign/node_modules/lodash/internal/arrayCopy.js
ilog-0.4.0 node_modules/contents/node_modules/lodash/internal/arrayCopy.js
ilog-0.4.0 node_modules/babel/node_modules/lodash/internal/arrayCopy.js
ilog-0.3.3 node_modules/babel/node_modules/lodash/internal/arrayCopy.js
ilog-0.3.3 node_modules/babel-plugin-proto-to-assign/node_modules/lodash/internal/arrayCopy.js
ilog-0.3.3 node_modules/contents/node_modules/lodash/internal/arrayCopy.js
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/internal/arrayCopy.js
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/inquirer/node_modules/lodash/internal/arrayCopy.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/inquirer/node_modules/lodash/internal/arrayCopy.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/internal/arrayCopy.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/inquirer/node_modules/lodash/internal/arrayCopy.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/internal/arrayCopy.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/lodash/internal/arrayCopy.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/internal/arrayCopy.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/inquirer/node_modules/lodash/internal/arrayCopy.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/internal/arrayCopy.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/inquirer/node_modules/lodash/internal/arrayCopy.js