mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 20:26:28 +00:00
9 lines
403 B
JavaScript
9 lines
403 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.__esModule = true, module.exports["default"] = module.exports;
|