[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Array/toLocaleString [Back]  [Original]

Array.prototype.toLocaleString() - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Array.prototype.toLocaleString()

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..

toLocaleString() . toLocaleString - (, ,).

In this article

arr.toLocaleString();

.

toLocaleString:

: toLocaleString

js
var number = 1337;
var date = new Date();
var myArr = [number, date, "foo"];

var str = myArr.toLocaleString();

console.log(str);
//  '1337,6.12.2013 19:37:35,foo',
//      (de-DE)    /

Specification
ECMAScript 2027 LanguageSpecification
# sec-array.prototype.tolocalestring
ECMAScript 2027 Internationalization API Specification
# sup-array.prototype.tolocalestring


Web Proxy Viewer  |  New URL  |  Original Page