normalist

1.2.0 • Public • Published

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});

Readme

Keywords

Package Sidebar

Install

npm i normalist

Weekly Downloads

72

Version

1.2.0

License

MPL-2.0

Unpacked Size

21.1 kB

Total Files

14

Last publish

Collaborators

  • i.aaroncox