Ved Ved - 1 year ago 89
JSON Question

How to filter array of arrays?

I have a JSON data. I am pushing this data to another array. The problem i am facing is, i want to filter array whose data

property. And push these array to another array. Can anyone will help me in this.I am not getting a way to do this.

My Json data is like:



"stroke-dasharray":"- ",


Ved Ved
Answer Source

Got the answer. i was doing silly mistake.

 var filterData= _.filter(jsonData, function (data) {
            return data.attrs.src;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download