F
find
Finds the first asset matching the given predicate, initializing every asset module first.
function find(filter: (asset: UnboundAsset) => boolean): UnboundAsset | undefinedParameters
| Name | Type | Description |
|---|---|---|
| filter | (asset: UnboundAsset) => boolean | Predicate run against each asset. |
Returns
UnboundAsset | undefinedThe matched UnboundAsset, or undefined if none match.