34,333
edits
Changes
→Identifying Unique Array Elements
</pre>
Note that in this instance, the original array is unchanged by the ''uniq'' method. if If you really wanted to strip out the duplicates from an array such that the array itself is altered, use the ''uniq!'' method as follows:
<pre>