Skip to content
Advertisement

Remove duplicates of array from another array, JavaScript

How can i remove duplicated arrays in this data structure?

[![enter image description here][1]][1]

I got this:

JavaScript

with:

JavaScript

I need to reduce data, remove duplicated arrays and provide result to sankey graf. jsonData elements contain much more data and structure of each left, center and right side is a little bit diffrent. [1]: http://i.stack.imgur.com/1MvXz.png

Advertisement

Answer

You could filter them:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement