toLocaleString (Array - JavaScript)

Gets the string representation of an Array object taking into account the host locale.

Defined in

Array (Standard - JavaScript)

Syntax

toLocaleString() : string
Return value Description
string The returned locale string.

Examples

This computed field displays the string representation of an array.
var a = new Array("one", "two", "three", "four");
a.toLocaleString() // one,two,three,four