Skip to main content
Blob.prototype.slice - node__buffer.d.ts - Node documentation
method Blob.prototype.slice

Usage in Deno

```typescript import { Blob } from "node:node__buffer.d.ts"; ```
Blob.prototype.slice(
start?: number,
end?: number,
type?: string,
): Blob
Creates and returns a new `Blob` containing a subset of this `Blob` objects data. The original `Blob` is not altered.

Parameters

optional
start: number
The starting index.
optional
end: number
The ending index.
optional
type: string
The content-type for the new `Blob`

Return Type