Damini M. answered 1d
isPrototypeOf() is a JavaScript method used to check whether an object exists in another object’s prototype chain.
It returns true if the object is a prototype of the specified object, otherwise false.
This method helps in understanding and verifying inheritance relationships between objects.
It is often more reliable than instanceof when dealing with complex prototype chains.