Search results
357 packages found
Wrap a function in a memo to reuse the first invocation result of the function
- browser
- deno
- deno-edition
- deno-entry
- denoland
- es2022
- export-default
- memo
- memoisation
- memoise
- memoization
- memoize
- module
- node
- View more
Generic memoization with Map and WeakMap
A memoization algorithm in which each function argument represents a new key, creating a trie of caches as defined by the array in your first argument.
Memoize is a simple library that remembers the function execution results and can respond immediately.
Memoize any function using Keyv as storage backend.
Define lazy properties on objects that are initialized once and only when accessed. Also known as a lazy initialization and cached/memoized getters.
Stateless weak memoization replacement for reselect and memoize-one
Delay the evaluation of a variadic async function and cache the result
Fast, small, efficient JavaScript memoization lib to memoize JS functions
Memoize a function of n args with O(n) recall and no memory leaks
A memoisation toolkit
Simple decorator for caching the result of a function based on the most recent arguments
A memoization library which only remembers the latest invocation
A decorator for caching class getters and updating the cache based on dependent properties
Cache the result of a method or getter for better performance. Supports timeout and clearing the cache.
A function is a set of statements that performs a task or calculates a value.
- extra
- function
- after
- arity
- before
- flip
- once
- partial
- partialRight
- InvocationControl
- Resolver
- ARGUMENTS
- COMPARE
- FALSE
- View more
A memoization algorithm that only caches the result of the latest set of arguments, where argument equality is determined via a provided equality function.
Takes a function and returns a memoized compute.