Posts by atualiz.id • 1 point
1 post
-
-2
votes6
answers47809
viewsA: How to search for a particular object within an array?
var arr = [{id:1, desc:"1111"},{id:2, desc:"222"},{id:3, desc:"3333"},{id:4, desc:"4444"}]; arr.filter(function( obj ) { return obj.id == 1; });