• memorize the results of a multi-parameter function.
    the used arguments are cached weakly, meaning that if an non-primitive object obj was used as an argument, then obj is not strongly bound to the memorized function's cache, meaning that if obj becomes inaccessible in all scopes, then obj will become garbage collectible, which then will also clear the cache's reference to obj (and its memorized result).

    Type Parameters

    • V
    • ARGS extends any[]

    Parameters

    • fn: ((...args) => V)
        • (...args): V
        • Parameters

          Returns V

    Returns ((...args) => V)

      • (...args): V
      • Parameters

        Returns V

Generated using TypeDoc