Edit This Page

toLocaleString()

Create a Locale String from an Enumerable.

Returns

(String): A Locale String representing the Enumerable.

Example

const number = 1337;
const date = new Date();
const myArr = [number, date, 'foo'];

Enumerable
        .from(myArr)
        .toLocaleString();
// "1337,8/5/2016, 6:47:15 PM,foo"
// if run in a German (de-DE) locale with timezone Europe/Berlin

Tips

See also: