Globalization API discussion
Erik Arvidsson
erik.arvidsson at gmail.com
Fri Nov 18 13:16:51 PST 2011
On Fri, Nov 18, 2011 at 12:41, Norbert Lindenberg
<ecmascript at norbertlindenberg.com> wrote:
> With that, the first example would become:
>
> var price = 300,
> currency = price.toLocaleString(localeList, {style: "currency", currency: "USD"});
We also talked about moving the localeList into the options and
defaulting to the default localelist which would make it even more
concise.
var price = 300;
var currency = price.toLocaleString({style: "currency", currency: "USD"});
--
erik
More information about the es-discuss
mailing list