si-funciona
Version:
Funciones de utilidad para uso general. [General usage utility functions.]
12 lines (11 loc) • 512 B
TypeScript
import 'core-js/stable';
/**
* Given a function, call with the correct number of parameters from an array of possible parameters.
* @memberOf module:functionHelpers
* @param {Function} fn - The function to be called
* @param {Array} params - Array of possible function parameters
* @param {number} [minimum=2] - Minimum number of parameters to use in the function
* @returns {*}
*/
declare const callWithParams: (fn: Function, params?: Array<any>, minimum?: number) => any;
export default callWithParams;