Syntax:
a isEqualTo b
where:
a - Anything
b - Anything
Return: Boolean true/false
Example:
_arr1 = [1,2,3];
_arr2 = [1,2,3];
if (_arr1 isEqualTo _arr2) then {hint "arrays match!"};
For more information see http://killzonekid.com/arma-scripting-tutorials-kk_fnc_isequal-compare-booleans-and-arrays/
It could even be a copy paste job since (see below) you can have scripted solution for it already, however dedicated command is most welcome.