.fetch()
Fetches the entries directly from the JSON file and returns the ones that match the provided filter. Fetches and returns all the entries from the collection if no filter is provided.
Last updated
Fetches the entries directly from the JSON file and returns the ones that match the provided filter. Fetches and returns all the entries from the collection if no filter is provided.
Last updated
Parameter
Description
filter
Callback (optional)
Function to test each element of the array. Return a value that coerces to true
to keep the element, or to false
otherwise
Returns
Description
Entries that match the filter or a single entry if the array length is equal to 1 and a filter is provided