Find non-duplicated items in list
Imagine this: you have a list of many items you bought on supermarket and you want to know which ones are not duplicated.
With indexOf and lastIndexOf, we can do that easily.
indexOf will return the first occurrence of the item in the array.
lastInde...
murilobd.hashnode.dev2 min read