hasPrev( )


Indicates if the search has a previous page of results.

Method Declaration
Copy
function hasPrev(): boolean;
Request
This method does not take any parameters
Returns
Return Type:boolean
Get whether the search result object has previous results
JavaScript
let hasPrev = results.hasPrev(); // false
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?