remove specific property from json object javascript

Solutions on MaxInterview for remove specific property from json object javascript by the best coders in the world

showing results for - "remove specific property from json object javascript"
Joel
02 Apr 2017
1let value="test";
2let myjsonobj = {
3      "employeeid": "160915848",
4      "firstName": "tet",
5      "lastName": "test",
6      "email": "test@email.com",
7      "country": "Brasil",
8      "currentIndustry": "aaaaaaaaaaaaa",
9      "otherIndustry": "aaaaaaaaaaaaa",
10      "currentOrganization": "test",
11      "salary": "1234567"
12}
13Object.keys(myjsonobj).forEach(function(key){
14  if (myjsonobj[key] === value) {
15    delete myjsonobj[key];
16  }
17});
18console.log(myjsonobj);