code: function areEqual(a,b) {
  	var same = true;
  	$.each(a, function(i, _) {
  		if (b[i] === undefined || a[i] !== b[i]) {
  			same = false;
  			return false;
  		}
  	});
  	return same;
  }
docs: quick & dirty compare function, not bijective nor multidimensional