fix README Github rendering
This commit is contained in:
parent
ce3bc6dc1f
commit
cdd5647c61
|
@ -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|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|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:
|
||||||
|
|
Loading…
Reference in New Issue