Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
7
node_modules/d3-shape/src/array.js
generated
vendored
Normal file
7
node_modules/d3-shape/src/array.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue