Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 305 Bytes

no-instanceof-array.md

File metadata and controls

19 lines (12 loc) · 305 Bytes

Disallow 'instanceof' for Array (no-instanceof-array)

Rule Details

Examples of incorrect code for this rule:

/*eslint no-instanceof-array: "error"*/

x instanceof Array

Examples of correct code for this rule:

/*eslint no-instanceof-array: "error"*/

Array.isArray(x)