Sha256: 5af1a2f08cb033abbb64d5efcedc20bf4df87845b18aed823a7eab646f728618
Contents?: true
Size: 545 Bytes
Versions: 153
Compression:
Stored size: 545 Bytes
Contents
/** * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Array} props The property names to copy. * @param {Object} [object={}] The object to copy properties to. * @returns {Object} Returns `object`. */ function baseCopy(source, props, object) { object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; object[key] = source[key]; } return object; } module.exports = baseCopy;
Version data entries
153 entries across 80 versions & 8 rubygems