@babel/runtime-corejs2
Version:
babel's modular runtime helpers with core-js@2 polyfilling
10 lines • 368 B
JavaScript
import _Array$isArray from "core-js/library/fn/array/is-array.js";
import arrayLikeToArray from "./arrayLikeToArray.js";
function _maybeArrayLike(r, a, e) {
if (a && !_Array$isArray(a) && "number" == typeof a.length) {
var y = a.length;
return arrayLikeToArray(a, void 0 !== e && e < y ? e : y);
}
return r(a, e);
}
export { _maybeArrayLike as default };