79376971

Date: 2025-01-22 08:33:48
Score: 1
Natty:
Report link

This is perfectly possible to provide as a non-async one-liner like this (TS):

function base64ToBlob(b64Data: string, contentType?: string) {
  return new Blob([Uint8Array.from(atob(b64Data), char => char.charCodeAt(0))], { type: contentType ?? "application/octet-stream" });
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fredrik Lysholm