| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8eb1135 commit 469190d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1308,6 +1308,17 @@ const { read, written } = encoder.encodeInto(src, dest); | |||
| 1308 | 1308 | ||
| 1309 | 1309 | The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`. | |
| 1310 | 1310 | ||
| 1311 | + ## `util.toUSVString(string)` | ||
| 1312 | + <!-- YAML | ||
| 1313 | + added: REPLACEME | ||
| 1314 | + --> | ||
| 1315 | + | ||
| 1316 | + * `string` {string} | ||
| 1317 | + | ||
| 1318 | + Returns the `string` after replacing any surrogate code points | ||
| 1319 | + (or equivalently, any unpaired surrogate code units) with the | ||
| 1320 | + Unicode "replacement character" U+FFFD. | ||
| 1321 | + | ||
| 1311 | 1322 | ## `util.types` | |
| 1312 | 1323 | <!-- YAML | |
| 1313 | 1324 | added: v10.0.0 | |
@@ -2468,18 +2479,6 @@ const util = require('util'); | |||
| 2468 | 2479 | util.log('Timestamped message.'); | |
| 2469 | 2480 | ``` | |
| 2470 | 2481 | ||
| 2471 | - | ||
| 2472 | - ### `util.toUSVString(string)` | ||
| 2473 | - <!-- YAML | ||
| 2474 | - added: REPLACEME | ||
| 2475 | - --> | ||
| 2476 | - | ||
| 2477 | - * `string` {string} | ||
| 2478 | - | ||
| 2479 | - Returns the `string` after replacing any surrogate code points | ||
| 2480 | - (or equivalently, any unpaired surrogate code units) with the | ||
| 2481 | - Unicode "replacement character" U+FFFD. | ||
| 2482 | - | ||
| 2483 | 2482 | [Common System Errors]: errors.md#errors_common_system_errors | |
| 2484 | 2483 | [Custom inspection functions on objects]: #util_custom_inspection_functions_on_objects | |
| 2485 | 2484 | [Custom promisified functions]: #util_custom_promisified_functions | |
| Back | FazBrowse Home | New Git URL |
0 commit comments