JSFiddle - React, Tailwind, and code Playground

JavaScript

var foo = function f(){ 
	f.x = 2; 
  for(o in f){ if(f[o]===f.x) alert(o); } 
} ;

foo();