bitcoinjs / bitcoinjs-lib

A javascript Bitcoin library for node.js and browsers.
MIT License
5.6k stars 2.08k forks source link

s/var/let #1082

Closed dcousens closed 6 years ago

dcousens commented 6 years ago

Block scoping > function scoping

rbndg commented 6 years ago

what about also using const when required?

dcousens commented 6 years ago

@rbndg ACK, I'm happy with const unless mutated, otherwise let

dcousens commented 6 years ago

See https://github.com/bitcoinjs/bitcoinjs-lib/pull/1111