• Takes UTF-8 data and decodes it to a string.

    In lossy mode, the REPLACEMENT CHARACTER is used to substitude invalid encodings. By default lossy mode is off and invalid data will lead to exceptions.

    Parameters

    • data: Uint8Array
    • lossy: boolean = false

    Returns string

Generated using TypeDoc