Skip to content

Commit 9f2ac2e

Browse files
committed
remove indexOf cleverness
1 parent 843e333 commit 9f2ac2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils/options/declaration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class OptionDeclaration {
101101
value = map.get(key);
102102
} else if (key in map) {
103103
value = map[key];
104-
} else if (!~values.indexOf(value) && errorCallback) {
104+
} else if (values.indexOf(value) === -1 && errorCallback) {
105105
if (this.mapError) {
106106
errorCallback(this.mapError);
107107
} else {

0 commit comments

Comments
 (0)