Options
All
  • Public
  • Public/Protected
  • All
Menu

Module func

Functions

funcAttempt

  • funcAttempt(callable: any, args?: any[], context?: any, catchExceptions?: boolean): any
  • Parameters

    • callable: any
    • args: any[] = []
    • context: any = null
    • catchExceptions: boolean = false

    Returns any

funcCallVoid

  • funcCallVoid(callback: Function, args?: any[]): void
  • Parameters

    • callback: Function
    • Optional args: any[]

    Returns void

functionCached

  • functionCached<F>(func: F): F
  • name

    functionCached

    description

    Create a cached version of a pure function. Function arguments must be primitives.

    Type parameters

    • F: function

    Parameters

    • func: F

    Returns F

functionName

  • functionName(func: Function): string
  • name

    functionName

    description

    Extract function name

    Parameters

    • func: Function

    Returns string

Generated using TypeDoc