Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 520 Bytes

no-in-array.md

File metadata and controls

26 lines (18 loc) · 520 Bytes

no-in-array

Disallows the $.inArray utility. Prefer Array#indexOf.

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

Rule details

❌ Examples of incorrect code:

$.inArray();

✔️ Examples of correct code:

inArray();
'test'.inArray();
'test'.inArray;

Resources