Skip to content

Commit

Permalink
Replace .includes with .indexOf
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Seminck committed Jun 2, 2017
1 parent dda84f4 commit 309d37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/no-unused-prop-types.js
Expand Up @@ -89,7 +89,7 @@ module.exports = {
if (
scope.block && scope.block.parent &&
scope.block.parent.key &&
LIFE_CYCLE_METHODS.includes(scope.block.parent.key.name)
LIFE_CYCLE_METHODS.indexOf(scope.block.parent.key.name) >= 0
) {
return true;
}
Expand Down

0 comments on commit 309d37c

Please sign in to comment.