I have an array of arrays, which looks something like this:
[[\"Some string\", \"Some other string\"],[\"Some third string\", \"some fourth string\"]]
If you want to check that the elements are the same and in the same order, I would go with:
arrayEq = function(a, b) { return _.all(_.zip(a, b), function(x) { return x[0] === x[1]; }); };
Even more neatly in coffeescript:
arrayEq = (a,b) -> _.all _.zip(a,b), (x) -> x[0]==x[1]