Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "function/index"

Index

Functions

compose

  • compose(...funcs: any[]): (Anonymous function)
  • Return a composed function

    Parameters

    • Rest ...funcs: any[]

    Returns (Anonymous function)

curry

  • curry(func: any, arity?: any): any
  • Parameters

    • func: any
    • Default value arity: any = func.length

    Returns any

debounce

  • debounce(func: any, wait?: any, options?: any): any
  • Parameters

    • func: any
    • Optional wait: any
    • Optional options: any

    Returns any

getFunctionName

  • getFunctionName(func: any): any
  • Return the name of the function

    example

    getFunctionName(function myAwesomeFunc(){}) ---> 'myAwesomeFunc'

    Parameters

    • func: any

    Returns any

partial

  • partial(func: any, ...args: any[]): any

throttle

  • throttle(func: any, wait?: any, options?: any): any
  • Parameters

    • func: any
    • Optional wait: any
    • Optional options: any

    Returns any

Generated using TypeDoc