No, scusa, a me questo codice:
codice:
var PRIMO_ARRAY   = ["A", "B", "F", "C", "H"];
var SECONDO_ARRAY = ["F", "H", "A", "I", "D"];

function sottrai(a, b)
{
	var c = new Array(), i, j, found;
	for(i = 0; i < a.length; i++)
	{
		found = false;
		for(j = b.length - 1; j > -1; j--)
		{
			if(a[i] == b[j]){
				b.splice(j, 1);
				found = true;
				break;
			}
		}
		if(!found)c.push(a[i]);
	}
	return b.concat(c);
}
trace(sottrai(PRIMO_ARRAY, SECONDO_ARRAY));
restituisce
codice:
I,D,B,C
che sono in effetti gli elementi non comuni...