mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
13 lines
406 B
JavaScript
13 lines
406 B
JavaScript
|
var arrayLikeToArray = require("./arrayLikeToArray.js");
|
||
|
|
||
|
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;
|
||
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|