Decodes base64 to bytes, or undefined for text that is not base64. PebbleKit JS has no atob on
every phone, so it is done here. Line breaks and the padding at the end are skipped.
Parameters
encoded: unknown
The base64 text.
Returns number[]|undefined
The bytes, or undefined for anything that does not read as base64.
Decodes base64 to bytes, or undefined for text that is not base64. PebbleKit JS has no atob on every phone, so it is done here. Line breaks and the padding at the end are skipped.