Skip to content

Commit db193f5

Browse files
coderzzpdead-horse
authored andcommitted
chore:replace indexOf with includes (#90)
1 parent d836995 commit db193f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,5 @@ function extendType(original, extend) {
119119
}
120120

121121
function checkEnable(types, type) {
122-
return types.indexOf(type) >= 0;
122+
return types.includes(type);
123123
}

0 commit comments

Comments
 (0)