summaryrefslogtreecommitdiff
path: root/school/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js
blob: 38fd78fb1a81de0d775727fadd7d9f5a8eae8249 (plain)
1
2
3
4
5
6
7
8
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);
}