isBlob
Checks if a value is a Blob instance.
Useful for filtering or type-narrowing in a functional pipeline:
values.filter(isBlob)
Available since v2.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
Section titled “Returns”value is Blob — True if value is a Blob
Examples
Section titled “Examples”Detect a Blob
Section titled “Detect a Blob”Returns true only for Blob instances.
Filter Blobs from a mixed array
Section titled “Filter Blobs from a mixed array”Use as a predicate in .filter() to extract Blob values.
