var stone = [{x :103},{x :159},{x :146},{x : 101}] var x = 146; for (var i = 0; i < stone.length; i++) if( stone[i].x == x){console.log("146" , i);}