UNPKG

mxs

Version:

⚔️ Lightweight functional JavaScript utilities

15 lines (14 loc) 401 B
/** * * Takes a value and applies it to a function * * @category Function * @param {*} value - the value that will be applied * @param {Function} function - the function that will receive the value * @returns {*} the return of applied function with the value * * @example * const increment = x => 1 * applyTo(1, increment) // => 2 */ export declare const applyTo: (...args: any[]) => any;