Skip to content

Commit 9ef0086

Browse files
committed
doc: add content for Blob.bytes()
Fixes: nodejs#54105 Refs: nodejs#53221
1 parent 027710e commit 9ef0086

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

doc/api/buffer.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,18 @@ added:
513513
Returns a promise that fulfills with an {ArrayBuffer} containing a copy of
514514
the `Blob` data.
515515

516+
### `blob.bytes()`
517+
518+
<!-- YAML
519+
added:
520+
- v20.16.0
521+
-->
522+
523+
* Returns: {Promise}
524+
525+
Returns a promise that fulfills with a {Uint8Array} containing a copy of the
526+
`Blob` data.
527+
516528
### `blob.size`
517529

518530
<!-- YAML

0 commit comments

Comments
 (0)