You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.
We want people to do
Array.isArray(x)
instead ofx instanceof Array
because:instanceof Array
is, perhaps surprisingly, unreliable.Found a few of these during code review of the Commerce project, so we may as well automate this.
Array.isArray
enjoys broad browser support, and we should be able to autofix this.There is no built-in ESLint rule for this, but it should be easy to implement.
The text was updated successfully, but these errors were encountered: