maybeArrayLike.js 300 B

123456789
  1. import arrayLikeToArray from "./arrayLikeToArray.js";
  2. function _maybeArrayLike(r, a, e) {
  3. if (a && !Array.isArray(a) && "number" == typeof a.length) {
  4. var y = a.length;
  5. return arrayLikeToArray(a, void 0 !== e && e < y ? e : y);
  6. }
  7. return r(a, e);
  8. }
  9. export { _maybeArrayLike as default };