fix README Github rendering

This commit is contained in:
Geoff Doty 2018-05-06 18:50:25 -04:00
parent ce3bc6dc1f
commit cdd5647c61
1 changed files with 4 additions and 4 deletions

View File

@ -54,10 +54,10 @@ The public API is very simple, you really only need 3 methods: `add`, `remove`,
| Method | Description |
|---|---|
| `.add(object)` | Adds entry to collection and returns entry(s) added |
| `.remove(id|object)` | Removes entry(s) from collection and returns removed |
| `.find(id|object)` | find all, find by id, or find by filter, returns array of entries |
| `.dump()` | saves records to JSON file |
| .add(object) | Adds entry to collection and returns entry(s) added |
| .remove(id|object) | Removes entry(s) from collection and returns removed |
| .find(id|object) | find all, find by id, or find by filter, returns array of entries |
| .dump() | saves records to JSON file |
#### Length (Count Records)
As `Records` are just plain JavaScript Arrays, you can use `.length` to determine the number of results returned, for example: