| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5133,9 +5133,12 @@ added: REPLACEME | |||
| 5133 | 5133 | --> | |
| 5134 | 5134 | ||
| 5135 | 5135 | * input {Buffer | ArrayBuffer | TypedArray} The input to validate. | |
| 5136 | - * Returns: {boolean} Returns `true` if and only if the input is valid UTF-8. | ||
| 5136 | + * Returns: {boolean} | ||
| 5137 | + | ||
| 5138 | + This function returns `true` if `input` contains only valid UTF-8-encoded data, | ||
| 5139 | + including the case in which `input` is empty. | ||
| 5137 | 5140 | ||
| 5138 | - This function is used to check if input contains UTF-8 code points (characters). | ||
| 5141 | + Throws if the `input` is a detached array buffer. | ||
| 5139 | 5142 | ||
| 5140 | 5143 | ### `buffer.INSPECT_MAX_BYTES` | |
| 5141 | 5144 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments