Skip to content

Commit

Permalink
chore:replace indexOf with includes (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderzzp authored and dead-horse committed Oct 10, 2017
1 parent d836995 commit db193f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ function extendType(original, extend) {
}

function checkEnable(types, type) {
return types.indexOf(type) >= 0;
return types.includes(type);
}

0 comments on commit db193f5

Please sign in to comment.