Returns a new blob containing the data in the specified range of bytes of the blob.
slice(start?, end?, type?)
start optional
The index of the first byte.
If negative, counts from the end of the blob.
If omitted, defaults to 0.
end optional
The index of the last byte plus one.
If negative, counts from the end of the blob.
If omitted, defaults to the size of the blob.
type optional
A string describing the media type of the blob.
If omitted, defaults to the type of the original blob.
A new Blob object.
let blob = new Blob(['Hello, world!'])
blob.slice(0, 5).textSync()
"Hello"