mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-24 04:36:31 +00:00
8 lines
303 B
JavaScript
8 lines
303 B
JavaScript
|
import arrayLikeToArray from "./arrayLikeToArray.js";
|
||
|
export default 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);
|
||
|
}
|