I don't find it elegant when TIME_FORMATS are written:
var TIME_FORMATS = [{
name: 'second',
value: 1e3
}, {
name: 'minute',
value: 6e4
}
}];
Instead of:
var TIME_FORMATS = {
second : 1e3,
minute: 6e4
};
Especially when the line after that is where LABELS_FOR_POWERS_OF_KILO is configured like how things should be configured. it's an odd choice when both dictionaries should serve the same purpose.
I don't find it elegant when
TIME_FORMATSare written:Instead of:
Especially when the line after that is where
LABELS_FOR_POWERS_OF_KILOis configured like how things should be configured. it's an odd choice when both dictionaries should serve the same purpose.