Just found out the latest version of JSLint does not allow for-loops. Good luck walking through that NodeList people.
7 replies ¬
your account to reply
Were meant to use forEach now? That doesn't let you break out like a for loop does. Well done for complicating code for no good reason, JSLint
Not to mention the fact that forEach is an Array method and does not even work for NodeList
Whats the reason for not allowing them?
Basically: Crockford doesn't like them anymore... But doesn't offer any kind of solution: