JSFiddle - React, Tailwind, and code Playground
JavaScript
let thing = {0: 1};
if (thing == 0 || thing == 1 || thing == 2) {
console.log(false);
} else {
console.log(true);
}
console.log(Number(thing) == 0)
let thing = {0: 1};
if (thing == 0 || thing == 1 || thing == 2) {
console.log(false);
} else {
console.log(true);
}
console.log(Number(thing) == 0)