UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

11 lines (10 loc) 442 B
/** * Creates a function that performs a mathematical operation on two values. * * @private * @param {Function} operator The function to perform the operation. * @param {number} [defaultValue] The value used for `undefined` arguments. * @returns {Function} Returns the new mathematical operation function. */ export function createMathOperation(operator: Function, defaultValue?: number): Function; export default createMathOperation;