JSFiddle - React, Tailwind, and code Playground

JavaScript

//Trying to obtain an object without prototype.constructor set correctly
function object(){
    this.type='object';
}
testObject.prototype.constructor=new object;

function testObject(){
    object.call(this);
    this.type='testObject';
}
testObject.prototype = new object;
testObject.prototype.constructor=new testObject;

var test=new testObject();
console.log('Obj:%o',test);

//Calling isPlainObject and obtaining error on console
$(document).ready(function(){
    if($.isPlainObject(test))alert('Plain Test Object');
    else alert('other');
});