is-prototype-of
v0.0.1
Published
checks if an object exists in another object's prototype chain.
Readme
is-prototype-of
Install
Install with npm:
$ npm install is-prototype-of --saveExample
const isPrototypeOf = require('is-prototype-of');
class Model {}
class UserModel extends Model {}
class MessageModel {}
isPrototypeOf(UserModel, Model);
// => true
isPrototypeOf(MessageModel, Model);
// => false
