Skip to content

Filters out all balances with amount == 0. Returns a new BalanceArray.

filterZeroBalances<T>(balances): BalanceArray<T>

Defined in: packages/bitbadgesjs-sdk/src/core/balances.ts:224

Filters out all balances with amount == 0. Returns a new BalanceArray.

Type Parameters

T

T extends NumberType

Parameters

balances

iBalance<T>[]

Returns

BalanceArray<T>

Remarks

Can also be used via the corresponding method with same name on BalanceArray

Edit this page on GitHub