predictype / predicates/objects/objectKeys / objectKeysCompare
objectKeysCompare(
source
,oper
,keys
):boolean
Defined in: predicates/objects/objectKeys.ts:24
Checks object keys for key-comparison operations (CONTAINS_, LACKS_, EQUALS_, etc.).
object
The object to check.
The key operation to perform (e.g. ‘contains_all_keys’, ‘lacks_all_keys’, ‘equals_keys’, …).
The array of keys to check (string[] | symbol[]). |
string [] |
symbol [] |
boolean
True if the key check is valid according to the operator, otherwise false.
If the operation is not recognized or keys is missing.
Supported Operators: