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.
1 parent 67a1994 commit c46e57cCopy full SHA for c46e57c
doc/api/buffer.md
@@ -5137,9 +5137,13 @@ added: REPLACEME
5137
-->
5138
5139
* input {Buffer | ArrayBuffer | TypedArray} The input to validate.
5140
-* Returns: {boolean} Returns `true` if and only if the input is valid UTF-8.
+* Returns: {boolean}
5141
+
5142
+This function is used to check if input contains invalid UTF-8 code points
5143
+(characters). Returns `true` if and only if the input does not contain
5144
+non UTF-8 characters.
5145
-This function is used to check if input contains UTF-8 code points (characters).
5146
+Throws if the `input` is a detached array buffer.
5147
5148
### `buffer.INSPECT_MAX_BYTES`
5149
0 commit comments