0

I have an array of arrays

let arr = [ [2, 3], [2, 3] ];

I tried using the Lodash ._uniq function

let newArr = _.uniq(arr);

but when I do this

console.log(newArr)

My result is still

[2, 3],
[2, 3]

This is the CDN I'm linking to in my HTML file

"https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js"

I'd like newArr to contain just this:

[2, 3]

Will Lodash work for this or do I need to try something else?

0 Answers0