Jason

Results 103 comments of Jason

@QAnders Thanks for your feedback! I would normally suggest the babel plugin to do what you're doing, but it looks like you've already looked into that. I've considered trying to...

When this library was first created, BigInt wasn't widely supported across all browsers - but that has certainly changed. There's some considerations to be made because we'd either have to...

Right now, there's no built in way to determine equality, but both `.value` and `.intValue` are safe for comparisons because the values are normalized. ```js var c1 = currency(2.52).subtract(.01); var...

This probably needs better documentation. If you're working with a currency instance behind the scenes it is inherently an object. Having it returned as an object lets you chain methods:...

What's the value in having a less restrictive type? It's intended for currency.js to try and parse the value and it seems like passing in `null` or `undefined` should raise...

There is an `errorOnInvalid` option if you want to catch a runtime error, but of course that doesn't help you in typescript land: https://currency.js.org/#erroroninvalid-default-false ```js currency(undefined, { errorOnInvalid: true });...

That might be a bug, or at least I would probably flag that behavior is incorrect. I need to look into this further, but I would think at a high...

Interesting, I would imagine we could support something similar (as of right now currency.js assumes an equal distribution, and spreads pennies over anything unequal). I'll leave this open to see...

Sitting the proper css rules seemed to work for me: ``` css thead { display: table-header-group; } tr { page-break-inside: avoid; } ``` Headers repeated correctly without overlap. One trick...

@woody-li Thanks for bringing this to our attention, we're currently investigating this. It appears the error in the console is getting raised from the extension, but should not impact the...