ktongue's picture
download
raw
242 Bytes
export var slice = Array.prototype.slice;
export default function(x) {
return typeof x === "object" && "length" in x
? x // Array, TypedArray, NodeList, array-like
: Array.from(x); // Map, Set, iterable, string, or anything else
}

Xet Storage Details

Size:
242 Bytes
·
Xet hash:
8e1e730cd23aa5d496d120fa10fad260c275a6583dfbbdb796b47dd2661c1427

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