value to test
prototype
boolean indicating if a provided prototype exists in a prototype chain
var inherit = require( `@stdlib/utils/inherit` );
function Foo() {
return this;
}
function Bar() {
return this;
}
inherit( Bar, Foo );
var bar = new Bar();
var bool = isPrototypeOf( bar, Foo.prototype );
// returns true
Tests if an object's prototype chain contains a provided prototype.
second argument must be an object and not null