hasNext( )


Indicates whether the query has more results.

You can use the next() and prev() functions returned by discountRules to navigate the pages of a query result.

Method Declaration
Copy
function hasNext(): boolean;
Request
This method does not take any parameters
Returns
Return Type:boolean
JavaScript
const hasNext = results.hasNext();
Errors

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

Did this help?