partial

Create a new version of the function where the given arguments are already filled in.

partial(func: Function, args: Array<any>): Function
Parameters
func (Function)
args (Array<any>)
Returns
Function

_

Argument placeholder. Used with partial.

_

set_function_arity

Modify the arity of a function.

set_function_arity(func: Function, arity: number): Function
Parameters
func (Function)
arity (number)
Returns
Function

set_function_name

Modify the name of a function.

set_function_name(func: Function, name: string): Function
Parameters
func (Function)
name (string)
Returns
Function

set_function_name_and_arity

Modify both the name and the arity of a function.

set_function_name_and_arity(func: Function, name: string, arity: number): Function
Parameters
func (Function)
name (string)
arity (number)
Returns
Function