0.0.1 • Published 6 years ago
is-prototype-of v0.0.1
is-prototype-of
Install
Install with npm:
$ npm install is-prototype-of --save
Example
const isPrototypeOf = require('is-prototype-of');
class Model {}
class UserModel extends Model {}
class MessageModel {}
isPrototypeOf(UserModel, Model);
// => true
isPrototypeOf(MessageModel, Model);
// => false
0.0.1
6 years ago