UNPKG

@kalamazoo/theme

Version:
20 lines 683 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // If a generic is used here, props can be inferred never and passed up (even with defaults) function add(fn, addend) { return function (props) { return fn(props) + addend; }; } exports.add = add; function subtract(fn, subtrahend) { return function (props) { return fn(props) - subtrahend; }; } exports.subtract = subtract; function multiply(fn, factor) { return function (props) { return fn(props) * factor; }; } exports.multiply = multiply; function divide(fn, divisor) { return function (props) { return fn(props) / divisor; }; } exports.divide = divide; //# sourceMappingURL=math.js.map