JSFiddle - React, Tailwind, and code Playground
JavaScript
var obj = {};
switch (obj) {
case obj:
// You will only ever end up in here
console.log('ok');
break;
case {}:
// You can never end up in here
console.log('no');
break;
}