You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
325 B
12 lines
325 B
5 years ago
|
var arrayLikeToArray = require("./arrayLikeToArray");
|
||
|
|
||
|
function _maybeArrayLike(next, arr, i) {
|
||
|
if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
|
||
|
var len = arr.length;
|
||
|
return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
|
||
|
}
|
||
|
|
||
|
return next(arr, i);
|
||
|
}
|
||
|
|
||
|
module.exports = _maybeArrayLike;
|