JSFiddle - React, Tailwind, and code Playground
by techie bala
HTML
<div id="one"></div>
<div id="two"></div>
JavaScript
/* Remove a Node from an Json object by its value */
var guestuser = {};
guestuser.name = "Guest User";
guestuser.pins = [{id:84}, {id:92}, {id:123}, {id:2353}];
$.each(guestuser.pins, function(i, it){
$("#one").append(it.id+", ");
});
var newArr = guestuser.pins.filter(function(a) {
return a.id != 123;
});
guestuser.pins = newArr;
$.each(guestuser.pins, function(i, it){
$("#two").append(it.id+", ");
});