| var isObject = require('./isObject.js'); | |
| var isArray = require('./isArray.js'); | |
| var extend = require('./extend.js'); | |
| // Create a (shallow-cloned) duplicate of an object. | |
| function clone(obj) { | |
| if (!isObject(obj)) return obj; | |
| return isArray(obj) ? obj.slice() : extend({}, obj); | |
| } | |
| module.exports = clone; | |
Xet Storage Details
- Size:
- 309 Bytes
- Xet hash:
- 65f02467333a80055713d2b3ab72e09703c5526f0f3a9a90060800fa63f959b6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.