Skip to content

Commit 000cfc3

Browse files
committed
.of() tested
1 parent 41f230d commit 000cfc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

isType.mjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class IsType extends TypeTest {
122122
}
123123

124124
of(constructor){
125-
return this.#valueConstructor && (this.#valueConstructor === constructor || this.#valueConstructor.prototype instanceof constructor);
125+
return !!(this.#valueConstructor && (this.#valueConstructor === constructor || this.#valueConstructor.prototype instanceof constructor));
126126
}
127127

128128
all(...propNames){

0 commit comments

Comments
 (0)