Sha256: d659a6399daad396681280576f5657d3a9814f08abe86ee9504af829de3d5353
Contents?: true
Size: 513 Bytes
Versions: 167
Compression:
Stored size: 513 Bytes
Contents
var LazyWrapper = require('./LazyWrapper'), LodashWrapper = require('./LodashWrapper'), arrayCopy = require('./arrayCopy'); /** * Creates a clone of `wrapper`. * * @private * @param {Object} wrapper The wrapper to clone. * @returns {Object} Returns the cloned wrapper. */ function wrapperClone(wrapper) { return wrapper instanceof LazyWrapper ? wrapper.clone() : new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__, arrayCopy(wrapper.__actions__)); } module.exports = wrapperClone;
Version data entries
167 entries across 87 versions & 9 rubygems