We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41f230d commit 000cfc3Copy full SHA for 000cfc3
isType.mjs.js
@@ -122,7 +122,7 @@ class IsType extends TypeTest {
122
}
123
124
of(constructor){
125
- return this.#valueConstructor && (this.#valueConstructor === constructor || this.#valueConstructor.prototype instanceof constructor);
+ return !!(this.#valueConstructor && (this.#valueConstructor === constructor || this.#valueConstructor.prototype instanceof constructor));
126
127
128
all(...propNames){
0 commit comments