1.2.0 • Published 5 years ago

normalist v1.2.0

Weekly downloads
8
License
MPL-2.0
Repository
-
Last release
5 years ago

normalist

a small libary of es6 functions used to maintain objects that follow or extend the byId / allId format recommended by redux

usage

installation

npm install normalist

import

import * as normalist from "normalist";

api

create( array, idKey = "id", extraData = {});
filter({allIds, byId}, filterFunc);
find({allIds, byId}, testingFn);
merge(destination, source);
set(normalist, newElement, idKey = "id");
sort(normalist, compareFn, idKey = "id");
toArray({allIds, byId});
1.2.0

5 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago