UNPKG

aureooms-js-type

Version:

type checking code bricks for JavaScript

12 lines (6 loc) 190 B
var isinstance = function ( type, obj ) { return obj !== null && obj !== undefined && obj.constructor.prototype === type.prototype; }; exports.isinstance = isinstance;