Blob.constructor

The Blob constructor.

Syntax

new Blob(array, options?)

Parameters

Return value

A new Blob object.

Example

let blob = new Blob(['one', new Uint8Array([32]), 'two'], {type: 'text/plain'})
blob.textSync()
"one two"