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

Improve code readability #184

Open fbitti opened 6 years ago

fbitti commented 6 years ago

Boolean() does the same thing as !!, both of them convert an Object to its true or false equivalent. However !! is cryptic and Boolean() is obvious. I dedicate this PR submission to @gordonmzhu: "A code that is easier to read will be read more".