zeed
    Preparing search index...

    Function memoize

    • Cache result of a function. Same arguments have to always return the same result in order to get expected optimization!

      const square = memoize((value) => value * value)`
      square(2) // == 2

      Type Parameters

      • In
      • Out

      Parameters

      Returns (arg: In) => Out