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...
Markdown supported · ⌘↵ to post
No responses yet.