JSFiddle - React, Tailwind, and code Playground

by Hüseyin BABAL

HTML

<div id="a">

</div>

JavaScript

TestObj =[{
            "id": "a01",
            "name": "Pine",
            "description": "Short description of pine."
        },
        {
            "id": "a02",
            "name": "Birch",
            "description": "Short description of birch."
        },
        {
            "id": "a03",
            "name": "Poplar",
            "description": "Short description of poplar."
        }];

jQuery.grep(TestObj, function(obj) {
          if (obj.id === "a01")
        jQuery("#a").html(JSON.stringify(obj));
});