Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "memoize1"

Index

Functions

Functions

memoize1

  • memoize1<A, B>(fn: Fn1<A, B>, cache?: MapLike<A, B>): (Anonymous function)
  • Optimized memoization for single arg functions. If the function expects args other than strings or numbers, you MUST provide a Map implementation which supports value (rather than object) equality, e.g. one of those provided by thi.ng/associative. Using a native Map type here will lead to memory leaks! Alternatively, use memoizeJ.

    Type parameters

    • A

    • B

    Parameters

    Returns (Anonymous function)

Generated using TypeDoc