File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3286,18 +3286,20 @@ added: REPLACEME
3286
3286
3287
3287
* ` data ` {any} The Base64-encoded input string.
3288
3288
3289
- Decodes a string of Base64-encoded data into ASCII (Latin1).
3289
+ Decodes a string of Base64-encoded data into bytes, and encodes those bytes
3290
+ into a string using Latin-1 (ISO-8859-1).
3290
3291
3291
- The ` data ` may be any JavaScript- value that can be coerced into a string.
3292
+ The ` data ` may be any JavaScript value that can be coerced into a string.
3292
3293
3293
3294
### ` buffer.btoa(data) `
3294
3295
<!-- YAML
3295
3296
added: REPLACEME
3296
3297
-->
3297
3298
3298
- * ` data ` {any} An ASCII (Latin1) string.
3299
+ * ` data ` {any} A Latin-1 string.
3299
3300
3300
- Encodes a string of ASCII characters into a Base64-encoded string.
3301
+ Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes
3302
+ into a string using Base64.
3301
3303
3302
3304
The ` data ` may be any JavaScript-value that can be coerced into a string.
3303
3305
You can’t perform that action at this time.
0 commit comments