We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54776ff commit e113d16Copy full SHA for e113d16
doc/api/buffer.md
@@ -5137,9 +5137,12 @@ 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 returns `true` if `input` contains only valid UTF-8-encoded data,
5143
+including the case in which `input` is empty.
5144
-This function is used to check if input contains UTF-8 code points (characters).
5145
+Throws if the `input` is a detached array buffer.
5146
5147
### `buffer.INSPECT_MAX_BYTES`
5148
0 commit comments