isBlob

Checks if the given value is a Blob.

Syntax

TypeScript
import { isBlob } from '@opentf/std';
isBlob(val: unknown): val is Blob

Examples

TypeScript
isBlob(new Blob()) //=> true

isBlob({}) //=> false

Try it

Last updated on
Edit this page