Open wjcrowcroft opened 12 years ago
In money.js, you can chain methods like this:
fx(1000).from("EUR").to("USD"); // 1.2945
These could be aliased as base and quote, for consistency with the naming convention in currency pairs and exchange rate calculations
base
quote
So they would also be available like this:
fx(1000).base("EUR").quote("USD"); // 1.2945
But only if it doesn't bloat the code too much.
In money.js, you can chain methods like this:
These could be aliased as
base
andquote
, for consistency with the naming convention in currency pairs and exchange rate calculationsSo they would also be available like this:
But only if it doesn't bloat the code too much.