pjs.setFound()
Â
The pjs.setFound() API sets the internal found value. The internal found value can be retrieved with the pjs.found() API.
Parameters
Value (boolean)
Example
var pos = 0;
Â
pos = 'ABC'.scan('B', start);
pjs.setFound(pos > 0);
Â
return pjs.found();
//true
Â