Skip to content
Advertisement

How to filter unique values of array object when in comma separated string

I have this array, where ‘data_type’ holds values in a comma separated string:

Original array:

JavaScript

How to catch, filter and build new array with all unique values?

Target array:

JavaScript

Here is a Fiddle: https://jsfiddle.net/grnewkzs/1/

Advertisement

Answer

JavaScript

you need to know why and how, or your lean nothing…that’s bad.

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