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
As far as I can tell, this is the exact same reasoning as .includes (and may belong in the same entrypoint)? Happy to open a PR depending on your feedback.
Example:
// BEFOREconstusers=["matt","sofia","waqas"]asconst;// Argument of type '"bryan"' is not assignable to// parameter of type '"matt" | "sofia" | "waqas"'.users.indexOf("bryan");
// AFTERimport"@total-typescript/ts-reset/array-indexof";// or array-includes?constusers=["matt","sofia","waqas"]asconst;// .indexOf now takes a string as the first parameterusers.indexOf("bryan")
The text was updated successfully, but these errors were encountered:
As far as I can tell, this is the exact same reasoning as
.includes
(and may belong in the same entrypoint)? Happy to open a PR depending on your feedback.Example:
The text was updated successfully, but these errors were encountered: