Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
304 bytes
|
Line | |
---|
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 |
|
---|
8 | return next(arr, i);
|
---|
9 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.