I have an array of arrays, which looks something like this:
[[\"Some string\", \"Some other string\"],[\"Some third string\", \"some fourth string\"]]
I can't comment on Dan Tao's answer, small change to skip checking of first array against itself (unnecessary _.difference call)
function allArraysAlike(arrays) {
return _.all(arrays, function(array) {
if(array === arrays[0]) return true;
return array.length == arrays[0].length && _.difference(array, arrays[0]).length == 0;
});
}