Skip to content

Adds the balanceToAdd to the existing balances. Returns a new BalanceArray.

addBalance<T>(existingBalances, balanceToAdd): BalanceArray<T>

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

Adds the balanceToAdd to the existing balances. Returns a new BalanceArray.

Type Parameters

T

T extends NumberType

Parameters

existingBalances

iBalance<T>[]

balanceToAdd

iBalance<T>

Returns

BalanceArray<T>

Remarks

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

Edit this page on GitHub