predictype / predicates/objects / objectKeyMembership
objectKeyMembership(
source
,oper
,keys
):boolean
Defined in: predicates/objects/objectKeyMembership.ts:18
Checks if a key is (or is not) in a list of possible keys using the specified operation.
object
The object to check.
The membership operation to perform (e.g. ‘key_in’, ‘key_not_in’).
(string
| symbol
)[]
The array of possible keys.
boolean
True if the membership check is valid according to the operator, otherwise false.
If the operation is not recognized or keys is missing.
Supported Operators: