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