Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
oatkiller edited this page Sep 13, 2010 · 3 revisions

unique returns an array with only the unique elements.
uses indexOf internally.

(function () {

[1,1,1,2,2,3,4,5][o.unique]();
// returns a new array: [1,2,3,4,5]

})();
Clone this wiki locally