JSFiddle - React, Tailwind, and code Playground

JavaScript

var a = [];
if( !a.hasOwnProperty("index") ){
 alert("!");   
}