main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
303 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import arrayLikeToArray from "./arrayLikeToArray.js";
|
---|
| 2 | export default function _maybeArrayLike(next, arr, i) {
|
---|
| 3 | if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
|
---|
| 4 | var len = arr.length;
|
---|
| 5 | return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
|
---|
| 6 | }
|
---|
| 7 | return next(arr, i);
|
---|
| 8 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.