I'm trying to compare two unordered arrays of strings with lodash. I have tried using the isMatch
function but it doesn't seem do what I want. Here's what I have tried:
var arr1 = ['foo', 'bar']
var arr2 = ['bar', 'foo']
_.isEqual(arr1,arr2) //should return true, but instead it returns false
Thanks.