JSFiddle - React, Tailwind, and code Playground

by dshilkret

JavaScript

var person = {
		"name": "Nazmus",
    "city": "Boston",
   
}
console.log(JSON.stringify(person, function replacer(key, value){
  if(key !== 'city'){ return value};
  //return value;
}));