predictype / predicates/objects / objectPrototypeRelation
objectPrototypeRelation(
source
,oper
,proto
):boolean
Defined in: predicates/objects/objectPrototypeRelation.ts:18
Checks prototype relation between objects (contains_prototype, is_prototype_of).
object
The object to check.
The prototype operation to perform (e.g. ‘is_prototype_of’, ‘prototype_is_null’).
any
The prototype to compare against.
boolean
True if the relation check is valid according to the operator, otherwise false.
If the operation is not recognized.
Supported Operators: