Skip to content

Commit

Permalink
doc: add isBigIntObject to documentation
Browse files Browse the repository at this point in the history
Refs: #55446
  • Loading branch information
liujunpeng committed Oct 18, 2024
1 parent 9f5000e commit 4e89e62
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -2359,6 +2359,24 @@ util.types.isBigInt64Array(new BigInt64Array()); // Returns true
util.types.isBigInt64Array(new BigUint64Array()); // Returns false
```
### `util.types.isBigIntObject(value)`
<!-- YAML
added: v22.9.0
-->
* `value` {any}
* Returns: {boolean}
Returns `true` if the value is a BigInt object, e.g. created
by `Object(BigInt(123))`.
```js
util.types.isBigIntObject(Object(BigInt(123))); // Returns true
util.types.isBigIntObject(BigInt(123)); // Returns false
util.types.isBigIntObject(123); // Returns false
```
### `util.types.isBigUint64Array(value)`
<!-- YAML
Expand Down

0 comments on commit 4e89e62

Please sign in to comment.