Skip to content

findBlobById()

@blobs/sdk v0.1.0


@blobs/sdk / utils/blobUtils / findBlobById

findBlobById(blobs, id): Blob | undefined

Defined in: utils/blobUtils.ts:228

Find a blob by ID within a flat array.

Parameters

blobs

Blob[]

Array to search.

id

string

Blob ID to look up.

Returns

Blob | undefined

The matching blob, or undefined if not found.