DCS World Typescript
    Preparing search index...
    • Like decode, but returns undefined instead of throwing when the input is not a string or is not valid Base64.

      Parameters

      • text: string

        The Base64 text.

      • Optionaloptions: DecodeOptions

        The alphabet the input uses.

      Returns string | undefined

      The decoded bytes, or undefined if the input is invalid.

      Only if options.alphabet is unknown (a programming error).