predictype

predictype v0.8.1


predictype / predicates/objects / objectInstanceType

Function: objectInstanceType()

objectInstanceType(source, oper): boolean

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

Checks the type of an instance using the specified operation.

Parameters

source

any

The value to check.

oper

ObjectInstanceTypeOper

The type operation to perform.

Returns

boolean

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

Throws

If the operation is not recognized.

Remarks

Supported Operators: