predictype

predictype v0.8.1


predictype / predicates/objects / objectKeysState

Function: objectKeysState()

objectKeysState(obj, oper): boolean

Defined in: predicates/objects/objectKeysState.ts:19

Checks state-related properties of an object’s keys (e.g. has_symbol_keys, has_numeric_keys).

Parameters

obj

object

The object to check.

oper

ObjectKeysStateOper

The state operation to perform (ObjectKeysStateOper).

Returns

boolean

True if the state check is valid according to the operator, otherwise false.

Throws

If the operation is not recognized.

Remarks

Supported Operators: