Skip to content

javifraile/memoization

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memoization

A general introduction into memoization: https://en.wikipedia.org/wiki/Memoization

A memoization implementation in Javascript. It stores into an object as a cache the result of a function in order to avoid the recalculation just reading into the cache.

The key of each result will be the first argument of the function or if provided, the result of the resolver using the same args.

If provided a natural number as a timeout, it will erase it after time exceeds so it will be calculated again.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%