Sha256: 4fbad9cd21ccac1d56090dad772aeb6ee665d2e5bedfcfe23040b0ee2f56ebfc

Contents?: true

Size: 679 Bytes

Versions: 270

Compression:

Stored size: 679 Bytes

Contents

var baseClone = require('./_baseClone');

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
    CLONE_SYMBOLS_FLAG = 4;

/**
 * This method is like `_.clone` except that it recursively clones `value`.
 *
 * @static
 * @memberOf _
 * @since 1.0.0
 * @category Lang
 * @param {*} value The value to recursively clone.
 * @returns {*} Returns the deep cloned value.
 * @see _.clone
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var deep = _.cloneDeep(objects);
 * console.log(deep[0] === objects[0]);
 * // => false
 */
function cloneDeep(value) {
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
}

module.exports = cloneDeep;

Version data entries

270 entries across 269 versions & 28 rubygems

Version Path
clapton-0.0.19 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
immosquare-cleaner-0.1.49 node_modules/lodash/cloneDeep.js
clapton-0.0.14 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
immosquare-cleaner-0.1.48 node_modules/lodash/cloneDeep.js
clapton-0.0.13 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.12 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.11 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.10 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.9 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.8 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.7 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.6 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.5 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.4 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.3 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js
clapton-0.0.2 lib/clapton/javascripts/node_modules/lodash/cloneDeep.js