Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "util/index"

Index

Functions

Const combine

  • combine(str: string[], joiner?: string): string
  • combine the members of an array into one string.

    Parameters

    • str: string[]
    • Default value joiner: string = " "

    Returns string

Const concat

  • concat(...str: string[]): string
  • concat joins various strings together to form an html class attribute value.

    Removes empty strings, null and undefined values.

    Parameters

    • Rest ...str: string[]

    Returns string

Const debounce

  • debounce<A>(f: function, delay: number): function
  • debounce a function so that it is only called once after a period of time.

    Type parameters

    • A

    Parameters

    • f: function
        • (a: A): void
        • Parameters

          • a: A

          Returns void

    • delay: number

    Returns function

      • (a: A): void
      • Parameters

        • a: A

        Returns void

Const noop

  • noop(): void

Const replaceContent

  • replaceContent(r: Renderable, node: Node): void
  • replaceContent

    Parameters

    • r: Renderable
    • node: Node

    Returns void

Generated using TypeDoc