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 532 forks source link

Cache Arrays Length and Fix tab/spaces inconsitency #22

Closed millermedeiros closed 13 years ago

millermedeiros commented 13 years ago

Perf improvement by caching Array lenghts and also tidying spaces/tabs (since my editor is configured to use 4 spaces instead of tabs by default..)

wjcrowcroft commented 13 years ago

Thanks dude - the first change (in map) is in dev branch now along with other changes. Other two weren't necessary since switching for loops for map instead.