Checks if given input's prototype comes directly from given constructor.
input
constructor
const isPrototypeOfObject = isPrototypeOf(Object);isPrototypeOfObject({}); // trueisPrototypeOfObject(/./); // false Copy
const isPrototypeOfObject = isPrototypeOf(Object);isPrototypeOfObject({}); // trueisPrototypeOfObject(/./); // false
Constructor to check.
Returns a curried function with constructor in context.
Checks if given
input
's prototype comes directly from givenconstructor
.Example