FACN3 / swearUrban

an autocomplete search app
0 stars 0 forks source link

forEach instead of a for loop #35

Open Karyum opened 7 years ago

Karyum commented 7 years ago

everytime you see a for loop looping through the length of the array then you definitely can use a forEach instead

so if you see this => i < arr.length; then you can use a forEach ( unless arr is a nodeList )