UNPKG

@razorpay/blade

Version:

The Design System that powers Razorpay

24 lines (22 loc) 547 B
function max(values, valueof) { let max; if (valueof === undefined) { for (const value of values) { if (value != null && (max < value || (max === undefined && value >= value))) { max = value; } } } else { let index = -1; for (let value of values) { if ((value = valueof(value, ++index, values)) != null && (max < value || (max === undefined && value >= value))) { max = value; } } } return max; } export { max as default }; //# sourceMappingURL=max.js.map