Newer
Older
alert / js / node_modules / @babel / runtime / helpers / esm / maybeArrayLike.js
@Réz István Réz István on 18 Nov 2021 304 bytes first commit
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);
}