JSFiddle - React, Tailwind, and code Playground

by Vladymyr Shevchuk

JavaScript

const obj = {
  foo: undefined
};

if ('foo' in obj) {
  alert('!');
}