openexchangerates / accounting.js

A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.
http://openexchangerates.github.io/accounting.js
MIT License
4.95k stars 528 forks source link

Optional format values are not optional #218

Open aaron-hardin opened 3 years ago

aaron-hardin commented 3 years ago

This is related to #139 but in a broader sense. The documentation indicates that the 'neg' and 'zero' values are optional when using format as an object but 'pos' is required. I take this to mean that they do not need to be supplied.