Answers for "lodash compare array without order"

0

lodash compare array without order

var array1 = [['a', 'b'], ['b', 'c']];
var array2 = [['b', 'c'], ['a', 'b']];
_.isEqual(array1.sort(), array2.sort()); //true
Posted by: Guest on June-21-2020

Code answers related to "lodash compare array without order"

Code answers related to "Javascript"

Browse Popular Code Answers by Language