Disallows the .each
method and $.each
utility. Prefer Array#forEach
.
❌ Examples of incorrect code:
$.each();
$( 'div' ).each();
$div.each();
$( 'div' ).first().each();
$( 'div' ).append( $( 'input' ).each() );
✔️ Examples of correct code:
each();
[].each();
div.each();
div.each;