Javascript arrays can contain duplicates - which is fine most of the time, but can sometimes cause some issues.