Last change
on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
406 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var arrayLikeToArray = require("./arrayLikeToArray.js");
|
---|
| 2 |
|
---|
| 3 | function _maybeArrayLike(next, arr, i) {
|
---|
| 4 | if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
|
---|
| 5 | var len = arr.length;
|
---|
| 6 | return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
|
---|
| 7 | }
|
---|
| 8 |
|
---|
| 9 | return next(arr, i);
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | module.exports = _maybeArrayLike;
|
---|
| 13 | module.exports["default"] = module.exports, module.exports.__esModule = true; |
---|
Note:
See
TracBrowser
for help on using the repository browser.