Function isPass

Returns if value is passing, used in various filters and projections. It passes if:

  • value is strict JS truthy, i.e !!value
  • and value is not equal to z.NOTHING, new Boolean(false), new Number(0), BigInt(0n), new String('')
  • finally value is not equal to STOP or a Stop instance, which also has a special meaning in the context of projections and iterators: it STOPS the iteration, like a break in a loop.