You'll find some utils functions.
Just copy it in your project. The function will be a new array's property
- uniq : Returns a uniq flatten array
['a','b','c','c'].uniq() => ['a','b','c']- uniqBy : Returns a uniq array by the keys
[{
a:1, b:2
},
{
a:3, b:4
},
{
a:1,b:2
}].uniqBy('a','b') => [{a:1,b2}, {a:3, b:4}]