@adyen/adyen-platform-experience-web
Version:

18 lines (17 loc) • 446 B
JavaScript
import { identity as r } from "../../../utils/common.js";
import { isString as c } from "../../../utils/value/is.js";
const s = (e) => (i, t, o) => {
if (c(t)) {
const n = +t;
if (n >= 0 && n < i.length)
return e(n);
}
return Reflect.get(i, t, o);
}, d = function* (e = r, i) {
for (let t = 0; t < this.length; t++)
yield e.call(i, this[t], t, this);
};
export {
s as indexedProxyGetTrap,
d as mapIteratorFactory
};