Search.../

hasPrev( )

Indicates if the search has a previous page of results.

Syntax

function hasPrev(): boolean

hasPrev Parameters

This function does not take any parameters.

Returns

true if there are previous results.

Return Type:

boolean

Was this helpful?

Get whether the search result object has previous results

Copy Code
1let hasPrev = results.hasPrev(); // false