Not that adding a require is a big deal but the node docs suggest that you don't need it:
// from the docs:
var number = 3500;
console.log(number.toLocaleString()); // Displays "3,500" in English locale
Except that doesn't happen:
$ node
> var n = 1238909880
undefined
> n.toLocaleString()
'1238909880'
> n.toLocaleString('en-US' ) // docs on node don't suggest this, but on MDN they do so...
'1238909880'
> process.env.LANG
'en_US.UTF-8'
Do I have to bring in i18n to get commas in my numbers? There's nothing about that on the nodejs docs for Number.toLocaleString. My LANG
looks correct, as far as I know, which isn't far. Tried setting process.env.LANG to 'en-US' and the output didn't change.