diff --git a/packages/transducers-binary/src/base64.ts b/packages/transducers-binary/src/base64.ts index a8cc30e214..85563277bf 100644 --- a/packages/transducers-binary/src/base64.ts +++ b/packages/transducers-binary/src/base64.ts @@ -106,7 +106,7 @@ export function base64Encode(...args: any[]): any { default: } while (buf.length && !isReduced(acc)) { - acc = reduce(acc, buf.shift()); + acc = reduce(acc, buf.shift()!); } return complete(acc); },