Disallows the $.map
utility. Prefer Array#map
.
📋 This rule is enabled in plugin:no-jquery/all
.
❌ Examples of incorrect code:
$.map();
✔️ Examples of correct code:
map();
[].map();
div.map();
div.map;
$( 'div' ).map();
$div.map();
$( 'div' ).first().map();
$( 'div' ).append( $( 'input' ).map() );
$( 'select' ).val().map();