@newdash/newdash
Version:
javascript/typescript utility library
15 lines (14 loc) • 640 B
TypeScript
export default createPartial;
/**
* Creates a function that wraps `func` to invoke it with the `this` binding
* of `thisArg` and `partials` prepended to the arguments it receives.
*
* @private
* @param {Function} func The function to wrap.
* @param {number} bitmask The bitmask flags. See `createWrap` for more details.
* @param {*} thisArg The `this` binding of `func`.
* @param {Array} partials The arguments to prepend to those provided to
* the new function.
* @returns {Function} Returns the new wrapped function.
*/
declare function createPartial(func: Function, bitmask: number, thisArg: any, partials: any[]): Function;