package.helpers.esm.maybeArrayLike.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime Show documentation
Show all versions of runtime Show documentation
babel's modular runtime helpers
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 };