Memoizes function results based on arguments

  • Type Parameters

    • T

    Parameters

    • f: (...args: any[]) => T

      Function to memoize

    Returns (...args: any[]) => T

    Memoized function