Predicate to check whether a JF2 object has an h property.
h
This predicate can be useful when we want to make sure that in another predicate function we reject objects that have this property. For example:
if (hasH(jf2)) { throw new Error(`received an object that has an 'h' property`)} Copy
if (hasH(jf2)) { throw new Error(`received an object that has an 'h' property`)}
Predicate to check whether a JF2 object has an
h
property.This predicate can be useful when we want to make sure that in another predicate function we reject objects that have this property. For example: