JSFiddle - React, Tailwind, and code Playground

by James Allardice

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;
}