Library API
    Preparing search index...

    Function memoizeFunction

    • Memoizes a function, caching its return values based on serialized arguments.

      Type Parameters

      • F extends (...args: any[]) => any

      Parameters

      • fn: F

        The function to memoize

      Returns F

      A memoized version of the function

      const expensive = memoizeFunction((a, b) => a * b);