JSFiddle - React, Tailwind, and code Playground

by shaneburgess

JavaScript

var myList =
    {
        itemA: 0,
        itemB: 1,
        itemC: 2,
        itemD: 3,
        itemE: 4
    };

$.each(myList,function(index,value){
    if(value == 2){ alert(index); }
});