• memorize the result of a function only once. after that, further calls to the function will not invoke fn anymore, and instead simply return the memorized value.

    Type Parameters

    • K
    • V

    Parameters

    • fn: ((arg) => V)
        • (arg): V
        • Parameters

          • arg: K

          Returns V

    Returns ((arg) => V)

      • (arg): V
      • Parameters

        • arg: K

        Returns V

Generated using TypeDoc