Open Karyum opened 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 )
i < arr.length;
arr
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 ( unlessarr
is a nodeList )