ts-money
ts-money copied to clipboard
Typescript port of js-money. Implementation of the Money value object.
Why is the INR using `Rs` as symbol when the sign of the rupee seems to be `₹`? https://github.com/macor161/ts-money/blob/9ed10910daafdaab8a5b3d67087a99b2f6ed9135/lib/currencies.ts#L446
This PR attempts to remove lodash as a dependency while still retaining 100% compatibility with previous versions of this package. This is accomplished by replacing smaller utilities with direct typeof-checks....
nit: Replace "loosing" with "losing".
- add source maps to help developers to debug problems (that's my main reason to push this PR) - upgrade direct & indirect dependencies - specify stricter interface types -...
Hello, Looks like this package does not work when respecting the doc examples Not working code: ```ts const fiveEur = new Money(500, Currencies.EUR); // 5 EUR // add fiveEur.add(new Money(250,...
``` const results = new Money(29900, Money.EUR).allocate([265.09, 0, 33.91]).map(money => money.toDecimal()); // returns [265.09, 0.01, 33.9] instead of [265.09, 0.00, 33.91] ```