I'm having an unexpected behavior with unique
of jQuery.
The following command:
var x = [1,2,1,2];
var y = $.unique(x);
document.write(y);
In Chrome it results in 1,2
(which is correct), but in Firefox it appears 1,2,1,2
.
Is this a bug, or was it supposed to be anyway?
Follow the example in jsfiddle , open it first in Chrome (works correctly) and then in Firefox (it does not work).
OBS : jQuery 2.1.0; Firefox 24.5.0; Google Chrome 34.0.1847.131 m.