Last Updated: February 25, 2016
·
297
· zolzaya

Merge and unique elements in arrays

Traditional way:

arr = ([1,2,3] + [3,5]).uniq

My way:

arr = [1,2,3] | [3,5]