new Collection()
- Source:
Methods
hasNext() → {boolean}
Check if has next page
- Source:
Returns:
- Type
- boolean
hasPrevious() → {boolean}
Check if has previous page
- Source:
Returns:
- Type
- boolean
(async) nextPage(page) → {Promise.<Array>}
Fetches next page.
Parameters:
Name | Type | Description |
---|---|---|
page |
the number of page to fetch |
- Source:
Returns:
- Type
- Promise.<Array>
(async) previousPage(page) → {Promise.<Array>}
Fetches previous page.
Parameters:
Name | Type | Description |
---|---|---|
page |
the number of page to fetch |
- Source:
Returns:
- Type
- Promise.<Array>