predictype / predicates/objects / objectProperty
objectProperty(
source
,oper
,key
):boolean
Defined in: predicates/objects/objectProperty.ts:20
Checks if an object has or lacks a property (own or inherited) using the specified operation.
object
The object to check.
The property operation to perform (e.g. ‘contains_property’, ‘lacks_own_property’).
The property key to check.
string |
symbol |
boolean
True if the property check is valid according to the operator, otherwise false.
If the operation is not recognized.
Supported Operators: