UNPKG

ripple

Version:

Ripple is an elegant TypeScript UI framework

11 lines (10 loc) • 226 B
export class Money { /** @param {number} amount @param {string} currency */ constructor(amount, currency) { this.amount = amount; this.currency = currency; } format() { return `${this.amount} ${this.currency}`; } }