Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utilities/memoize

Index

Functions

Functions

  • default<T>(func: T): T
  • name

    memoize

    description

    Gives you a function which caches its return value on the first run.

    Type parameters

    • T: Function

    Parameters

    • func: T

      The function to memoize

    Returns T

    Returns the function with a cacheable value

Generated using TypeDoc