|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
369 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.default = _default;
|
|---|
| 7 | exports.slice = void 0;
|
|---|
| 8 | var slice = exports.slice = Array.prototype.slice;
|
|---|
| 9 | function _default(x) {
|
|---|
| 10 | return typeof x === "object" && "length" in x ? x // Array, TypedArray, NodeList, array-like
|
|---|
| 11 | : Array.from(x); // Map, Set, iterable, string, or anything else
|
|---|
| 12 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.