8000
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.
isBigIntObject
1 parent a28376b commit 475e478Copy full SHA for 475e478
doc/api/util.md
@@ -2292,6 +2292,24 @@ util.types.isBigInt64Array(new BigInt64Array()); // Returns true
2292
util.types.isBigInt64Array(new BigUint64Array()); // Returns false
2293
```
2294
2295
+### `util.types.isBigIntObject(value)`
2296
+
2297
+<!-- YAML
2298
+added: v10.4.0
2299
+-->
2300
2301
+* `value` {any}
2302
+* Returns: {boolean}
2303
2304
+Returns `true` if the value is a BigInt object, e.g. created
2305
+by `Object(BigInt(123))`.
2306
2307
+```js
2308
+util.types.isBigIntObject(Object(BigInt(123))); // Returns true
2309
+util.types.isBigIntObject(BigInt(123)); // Returns false
2310
+util.types.isBigIntObject(123); // Returns false
2311
+```
2312
2313
### `util.types.isBigUint64Array(value)`
2314
2315
<!-- YAML
0 commit comments