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

Function array

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

Source from the content-addressed store, hash-verified

17777var slice = Array.prototype.slice;
17778
17779function array(x) {
17780 return typeof x === "object" && "length" in x
17781 ? x // Array, TypedArray, NodeList, array-like
17782 : Array.from(x); // Map, Set, iterable, string, or anything else
17783}
17784
17785function Linear(context) {
17786 this._context = context;

Callers 4

lineFunction · 0.85
areaFunction · 0.85
pieFunction · 0.85
stackFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected