A data storage and manipulation library for javascript
npm install hord
Requires Babel 7.2+
- Collection ⇐
Array
An array of objects with optional model enforcement and indexed queries.
- List
Always sorted array.
- Model
Data models with automatic schema enforcement.
- Schema
Schema enforcement.
- compare([paths], [desc]) ⇒
sortCompareFunction
Returns a function that compares two values. If paths are provided, compares the values at that path on objects.
Notes:
- Handles undefined, null, and NaN.
- Distinguishes numbers from strings.