tahamajs's picture
download
raw
290 Bytes
import isObject from './isObject.js';
import isArray from './isArray.js';
import extend from './extend.js';
// Create a (shallow-cloned) duplicate of an object.
export default function clone(obj) {
if (!isObject(obj)) return obj;
return isArray(obj) ? obj.slice() : extend({}, obj);
}

Xet Storage Details

Size:
290 Bytes
·
Xet hash:
1f30368d9fd02c40ad95e071b7073a961c6fc6583081b67c1ae85d593f8b659e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.