Skip to content
Daniel Leite de Oliveira edited this page Feb 18, 2017 · 2 revisions
import Wallet, { Money } from 'walletjs'

const money = Money.init(100)
const wallet = Wallet.init(money)
console.log(wallet.getAmount(money.currency))

const money2 = Money.init(100)
const newWallet = wallet.add(money2)
console.log(newWallet.getAmount(money2.currency))
Clone this wiki locally