• Caches the return value of calling a function. using the arguments as keys. This is also called memoization.

    Pending tests. Please report bugs.

    Type Parameters

    Parameters

    • func: T
    • hash: ((object) => any) = identityHash
        • (object): any
        • Parameters

          • object: any

          Returns any

    Returns T

    Example