last day (16 days later) » 

12:05 PM
1
A: using bracket notation for reading json in javascript

Nina ScholzYou could use a bit more suited array methods, like Array#filter and Array#some, because you need only iterate for the test until a value is found and the result set is just a subset of the given array. var arr = [{ id: 1, type: 1, typeName: "Lead", client: 1, clientName: "Ljungbloms Elektr...

 
but this will only return one single row. I have updated my JSON. Whereever it gets a match it should add that row to a array iist
actually I am working on filtering. and ["Open", "Unset","Closed"] are the checkboxes
 
yes, but what is wrong with the single row? what do you expect?
 
for this ["Open", "Unset","Closed"], it should return 3 row, because we can find 3 objects in statusName.
 
so if you find one out of three, you like to get the same element three times (as the length of checkedFilters)?
 
actually, we are checking for this ["Open", "Unset","Closed"] .I have updated my JSON.Now i should get 2 objects for open and one object for closed.Hope you got it this time
 
12:05 PM
it would be easier, if you include the wanted content of temporaryFilterData.
 
I have updated this JSON, I am tring from 2 days.
 
hi
please try the last version
 
yeah this one works, thanks.and can i get learning sort o advices from you?
 
yes, it depends
 
ok thanks
 
12:18 PM
you are welcome
 

  last day (16 days later) »