predictype

predictype v0.8.1


predictype / predicates/objects/objectPrototypeState / objectPrototypeState

Function: objectPrototypeState()

objectPrototypeState(source, oper): boolean

Defined in: predicates/objects/objectPrototypeState.ts:16

Checks state-related properties of an object’s prototype (e.g. prototype_is_null).

Parameters

source

object

The object to check.

oper

ObjectPrototypeStateOper

The prototype state operation to perform.

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: