JSFiddle - React, Tailwind, and code Playground

by golubev

JavaScript

var myObj = new myObject();

$(document.body)
.append("<pre>'myObj' is empty object? : " + jQuery.isEmptyObject(myObj) + "</pre>")
.append("<pre>'myObj' is plain object? : " + jQuery.isPlainObject(myObj) + "</pre>")
//convert to JSON
.append("<pre>and again... 'myObj' is plain object? : " + jQuery.isPlainObject(JSON.parse(JSON.stringify(myObj))) + "</pre>");

function myObject(){}