Skip to content

getBlobDescendants()

@blobs/sdk v0.1.0


@blobs/sdk / utils/blobUtils / getBlobDescendants

getBlobDescendants(blobs, blobId): Blob[]

Defined in: utils/blobUtils.ts:263

Recursively collect all descendants of a blob.

Parameters

blobs

Blob[]

Pool of blobs to search.

blobId

string

The root of the subtree (the root itself is not included).

Returns

Blob[]

All descendants in pre-order traversal.