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 b7f8fcb commit 8d0d1b7Copy full SHA for 8d0d1b7
src/fable-library/Encoding.ts
@@ -127,7 +127,8 @@ class UTF16LE {
127
128
class UTF8 {
129
130
- public getBytes(str: string, index?: number, count?: number) {
+ public getBytes(str: string | string[], index?: number, count?: number) {
131
+ str = Array.isArray(str) ? str.join("") : str;
132
if (index != null && count != null) {
133
str = str.substring(index, index + count);
134
} else if (index != null) {
0 commit comments