Makes it easy to manipulate id-based resources with lodash or lowdb
Removes localStorage
and file
functions from lodash-id
as they are provided by lowdb.
Alternatively, it should be easy to write code to persist data or use libraries since data structures are simple arrays and objects.
underscore-db
now normalizes id, so you can use an integer or string to find, update, remove, ... an item.
_.getById(posts, 1) === _.getById(posts, '1')
insert
to keep objects order in case of replacementunderscore.db
to underscore-db
insert
replaces now docs with same idmixWith
, use simply _.mixin
_.insert
_.id
propertyAdd save
and load
.
Fix Lo-Dash support in Node
updateWhere