JSFiddle - React, Tailwind, and code Playground
by Ronny
JavaScript
var appsJson = {
name: {first: "Ronny", id: 3},
employee: {id: 4}
},
id = 4,
val = null;
$.each(appsJson, function(index, value) {
if(value.id == id){
val = value;
}
});
console.log(val);