refactor: prefer includes to indexOf by tbouffard · Pull Request #952 · maxGraph/maxGraph

@tbouffard

From typescript-eslint
  Prior to ES2015, Array#indexOf and String#indexOf comparisons against -1 were the standard ways to check whether a
  value exists in an array or string, respectively.
  Alternatives that are easier to read and write now exist: ES2015 added String#includes and ES2016 added Array#includes
  .

coderabbitai[bot]

coderabbitai[bot]

@tbouffard tbouffard deleted the refactor/prefer_includes_to_indexOf branch

November 18, 2025 11:14