Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 620 Bytes

no-map-util.md

File metadata and controls

32 lines (24 loc) · 620 Bytes

no-map-util

Disallows the $.map utility. Prefer Array#map.

📋 This rule is enabled in plugin:no-jquery/all.

Rule details

❌ 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();

Resources