0.1.5 • Published 5 years ago

index-list-by-fields v0.1.5

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Index List By Fields

A simple library that takes an array of objects and indexes it by certain fields on the object.

Useful for arrays of relational data stored as plain objects, i.e. how one might store models in a Redux store.

Also included is a utility for memoizing the indexing function. Standard memoization would recreate the entire Index any time any element of the array changes. This special memoizer intelligently only changes the parts of the Index that actually change. This way, we can reuse the array without having to re-render or update the dependant data.

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago