Skip to content

Commit

Permalink
doc: update isUtf8 description
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Dec 25, 2022
1 parent 67a1994 commit 8f863e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5137,9 +5137,12 @@ added: REPLACEME
-->

* input {Buffer | ArrayBuffer | TypedArray} The input to validate.
* Returns: {boolean} Returns `true` if and only if the input is valid UTF-8.
* Returns: {boolean}

This function is used to check if input contains invalid UTF-8 code points (characters).
Returns `true` if and only if the input does not contain non UTF-8 characters.

This function is used to check if input contains UTF-8 code points (characters).
Throws if the `input` is a detached array buffer.

### `buffer.INSPECT_MAX_BYTES`

Expand Down

0 comments on commit 8f863e5

Please sign in to comment.