You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For...in also iterates over additional properties added to the array prototype.
I had an issue with this when using Micromodal in a 3rd party contect, where the array prototype got additional functions added. This let to a complete failure of the code.
The text was updated successfully, but these errors were encountered:
cwillinx
changed the title
Use for...of instead of for...in loops
For...in loops
May 29, 2024
In the code two times a
for...in
loop is used.For...in also iterates over additional properties added to the array prototype.
I had an issue with this when using Micromodal in a 3rd party contect, where the array prototype got additional functions added. This let to a complete failure of the code.
The text was updated successfully, but these errors were encountered: