Sha256: aed772cbfec624f8b2c92347a85a2e9d387ec782a9126c83682c0a15011b5ee2
Contents?: true
Size: 363 Bytes
Versions: 167
Compression:
Stored size: 363 Bytes
Contents
/** * Initializes an object clone. * * @private * @param {Object} object The object to clone. * @returns {Object} Returns the initialized clone. */ function initCloneObject(object) { var Ctor = object.constructor; if (!(typeof Ctor == 'function' && Ctor instanceof Ctor)) { Ctor = Object; } return new Ctor; } module.exports = initCloneObject;
Version data entries
167 entries across 87 versions & 9 rubygems