immutable-array-map
v2.4.0
Published
Immutable data structure with Array and Map capabilities
Downloads
12
Maintainers
Readme
ImmutableArrayMap
ImmutableArrayMap is a data structure that contains:
- Array to save the data
- Map {idAttribute: arrIndex} to maintain pointers to the index in the array
Features
- multiple operations in constant time: update, add, getItem, getIndex, isEmpty, size, getArray
- remove operation in O(n) time
Installing
npm install immutable-array-map
Usage
import ImmutableArrayMap from 'immutable-array-map';
const data = new ImmutableArrayMap([], 'id', {});
Features
- Yehonatan Sayag - Initial work - sayag11
License
This project is licensed under the MIT License - see the LICENSE.md file for details