• Test whether a string data blob contains base64 data, optionally of a specific type or types

    Parameters

    • data: string

      The candidate string data

    • Optional types: string[]

      An array of allowed mime types to test

    Returns boolean