Skip to content

sortBalancesByAmount() function in the BitBadges TypeScript SDK (bitbadges on npm): signature, properties, methods, and usage.

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

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

Sorts balances by their amount property. 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