MCPcopy Create free account
hub / github.com/breck7/scroll / array$1

Function array$1

external/.d3.js:13273–13277  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

13271}
13272
13273function array$1(x) {
13274 return typeof x === "object" && "length" in x
13275 ? x // Array, TypedArray, NodeList, array-like
13276 : Array.from(x); // Map, Set, iterable, string, or anything else
13277}
13278
13279function shuffle(array, random) {
13280 let m = array.length,

Callers 1

packSiblingsRandomFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected