fix README Github rendering

This commit is contained in:
Geoff Doty 2018-05-06 18:54:29 -04:00
parent cdd5647c61
commit 654e39b9a1
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 | | Method | Description |
|---|---| |---|---|
| .add(object) | Adds entry to collection and returns entry(s) added | | `.add(object)` | Adds entry to collection and returns entry(s) added |
| .remove(id|object) | Removes entry(s) from collection and returns removed | | `.remove(id or 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 | | `.find(id or object)` | find all, find by id, or find by filter, returns array of entries |
| .dump() | saves records to JSON file | | `.dump()` | saves records to JSON file |
#### Length (Count Records) #### Length (Count Records)
As `Records` are just plain JavaScript Arrays, you can use `.length` to determine the number of results returned, for example: As `Records` are just plain JavaScript Arrays, you can use `.length` to determine the number of results returned, for example: