JSFiddle - React, Tailwind, and code Playground
JavaScript
var Shape = function (shape) {
if( shape instanceof Shape ){
alert("shape instance found");
}
};
var Quad = function(){
};
Quad.prototype = new Shape();
var q = new Quad();
var s = new Shape(q);