refactor: prefer includes to indexOf by tbouffard · Pull Request #952 · maxGraph/maxGraph
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 .
tbouffard
deleted the
refactor/prefer_includes_to_indexOf
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters