hord
TypeScript icon, indicating that this package has built-in type declarations

0.7.10 • Public • Published

Hord

A data storage and manipulation library for javascript

npm build coverage deps size vulnerabilities license


Installation

npm install hord

Requires Babel 7.2+


Classes

CollectionArray

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.


Functions

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.

Package Sidebar

Install

npm i hord

Weekly Downloads

19

Version

0.7.10

License

MIT

Unpacked Size

186 kB

Total Files

103

Last publish

Collaborators

  • darrenpaulwright