JSFiddle - React, Tailwind, and code Playground

by keemor

JavaScript

if (dojo.isObject([])) {
    document.write('Why [] is true?<br>')
}
if (dojo.isObject(null)) {
    document.write('Why null is true?<br>')
}
if (dojo.isObject(function(){})) {
    document.write('Why function(){} is true?')
}