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.
Returns if value is passing, used in various filters and projections. It passes if:
!!value
value
is not equal toz.NOTHING
,new Boolean(false)
,new Number(0)
,BigInt(0n)
,new String('')
value
is not equal toSTOP
or aStop
instance, which also has a special meaning in the context of projections and iterators: it STOPS the iteration, like abreak
in a loop.