We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
isBigIntObject
1 parent ded1b68 commit 2030285Copy full SHA for 2030285
doc/api/util.md
@@ -2375,6 +2375,24 @@ util.types.isBigInt64Array(new BigInt64Array()); // Returns true
2375
util.types.isBigInt64Array(new BigUint64Array()); // Returns false
2376
```
2377
2378
+### `util.types.isBigIntObject(value)`
2379
+
2380
+<!-- YAML
2381
+added: v10.4.0
2382
+-->
2383
2384
+* `value` {any}
2385
+* Returns: {boolean}
2386
2387
+Returns `true` if the value is a BigInt object, e.g. created
2388
+by `Object(BigInt(123))`.
2389
2390
+```js
2391
+util.types.isBigIntObject(Object(BigInt(123))); // Returns true
2392
+util.types.isBigIntObject(BigInt(123)); // Returns false
2393
+util.types.isBigIntObject(123); // Returns false
2394
+```
2395
2396
### `util.types.isBigUint64Array(value)`
2397
2398
<!-- YAML
0 commit comments