JSFiddle - React, Tailwind, and code Playground
JavaScript
function Tree() {
}
var theTree = new Tree();
console.log(theTree.constructor === Tree );
var Forest = function() {};
Forest.prototype = theTree;
console.log(new Forest().constructor === Tree );
Forest.prototype.constructor = Forest;
console.log(new Forest().constructor === Forest );