Line no 49
var convert = fx.convert = function(val, opts) {
I'm trying to understand JS coding styles and I found this in money.js as well as underscore.js (you have mentioned it as inspiration the source code).
What's the reason to have a local variable convert when you could have just used fx.convert in it's place?
Line no 49
var convert = fx.convert = function(val, opts) {
I'm trying to understand JS coding styles and I found this in
money.js
as well asunderscore.js
(you have mentioned it as inspiration the source code).What's the reason to have a local variable
convert
when you could have just usedfx.convert
in it's place?