tsParticles - v4.0.0-beta.12
    Preparing search index...
    • Memoize a function's results with optional bounded size and TTL.

      Backward compatible: callers using memoize(fn) keep the same semantics. Options: { maxSize?: number, ttlMs?: number, keyFn?: (args) => string } Default keyer uses a stable serialization of the arguments (sorted keys) which makes equal-shaped objects produce the same cache key.

      See: .planning/research/PITFALLS.md for tradeoffs of keying/eviction strategies.

      Type Parameters

      • TArgs extends unknown[]
      • Result

      Parameters

      Returns (...args: TArgs) => Result

      the memoized function