JSFiddle - React, Tailwind, and code Playground

by sanat gupta

JavaScript

var data = {
	name:'sanat',
  city:'indore',
}

Object.entries(data).forEach(([key,value])=>{
	if(data.hasOwnProperty(key)){
  	console.log(key);	
  }
	
});