Quantumbraid's picture
download
raw
283 Bytes
export function cloneDeep(value) {
if (Array.isArray(value)) {
return value.map((child) => cloneDeep(child))
}
if (typeof value === 'object' && value !== null) {
return Object.fromEntries(Object.entries(value).map(([k, v]) => [k, cloneDeep(v)]))
}
return value
}

Xet Storage Details

Size:
283 Bytes
·
Xet hash:
102bf7367779e660778629fbb62d6f42776c016c2ce7fda571b4ad364a99bc88

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