@razorpay/blade
Version:
The Design System that powers Razorpay
9 lines (7 loc) • 355 B
JavaScript
function map(values, mapper) {
if (typeof values[Symbol.iterator] !== "function") throw new TypeError("values is not iterable");
if (typeof mapper !== "function") throw new TypeError("mapper is not a function");
return Array.from(values, (value, index) => mapper(value, index, values));
}
export { map as default };
//# sourceMappingURL=map.js.map