File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/runtime/node/internal/util Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,23 +11,23 @@ export const isArgumentsObject = /*@__PURE__*/ notImplemented<
11
11
> ( "util.types.isArgumentsObject" ) ;
12
12
13
13
export const isBigIntObject = ( val : any ) : val is bigint =>
14
- val instanceof BigInt ;
14
+ typeof val === "bigint" ;
15
15
16
16
export const isBooleanObject : typeof nodeUtilTypes . isBooleanObject = (
17
17
val ,
18
- ) : val is boolean => val instanceof Boolean ;
18
+ ) : val is boolean => typeof val === "boolean" ;
19
19
20
20
export const isNumberObject : typeof nodeUtilTypes . isNumberObject = (
21
21
val ,
22
- ) : val is number => val instanceof Number ;
22
+ ) : val is number => typeof val === "number" ;
23
23
24
24
export const isStringObject : typeof nodeUtilTypes . isStringObject = (
25
25
val ,
26
- ) : val is string => val instanceof String ;
26
+ ) : val is string => typeof val === "string" ;
27
27
28
28
export const isSymbolObject : typeof nodeUtilTypes . isSymbolObject = (
29
29
val ,
30
- ) : val is symbol => val instanceof Symbol ;
30
+ ) : val is symbol => typeof val === "symbol" ;
31
31
32
32
export const isNativeError = /*@__PURE__ */ notImplemented <
33
33
typeof nodeUtilTypes . isNativeError
You can’t perform that action at this time.
0 commit comments