'use strict' module.exports = clone var getPrototypeOf = Object.getPrototypeOf || function (obj) { return obj.__proto__ } function clone (obj) { if (obj === null || typeof obj !== 'object') return obj if (obj instanceof Object) var copy = { __proto__: getPrototypeOf(obj) } else var copy = Object.create(null) Object.getOwnPropertyNames(obj).forEach(function (key) { Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) }) return copy }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
LICENSE | File | 791 B | 0644 |
|
clone.js | File | 496 B | 0644 |
|
graceful-fs.js | File | 12.38 KB | 0644 |
|
legacy-streams.js | File | 2.59 KB | 0644 |
|
package.json | File | 1.01 KB | 0644 |
|
polyfills.js | File | 9.9 KB | 0644 |
|