first commit
This commit is contained in:
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
|
||||
}
|
||||
Reference in New Issue
Block a user