@alekmarinov/observablestore
v2.0.1
Published
RxJS/Observable based memory store
Downloads
50
Maintainers
Readme
ObservableStore
RxJS/Observable based memory store
API
Table of Contents
createItem
Creates new item in the store
Parameters
itemobject object to add to store
Returns object the item with added _index property pointing the same item in the store
updateItem
Updates item at specified index
Parameters
Returns object the updated item
deleteItem
Deletes item at specified index
Parameters
indexnumber in store to be deleted
items
Returns all items
Returns array all existing items in the store
item
Return an item at specified index
Parameters
index
Returns object an item
size
Return the number of items in the store
Returns number number of items in the store
