The toLocaleString()
method returns a string representing the elements of the typed array. The elements are converted to strings and are separated by a locale-specific string (such as a comma ","). This method has the same algorithm as Array.prototype.toLocaleString()
and, as the typed array elements are numbers, the same algorithm as Number.prototype.toLocaleString()
applies for each element. TypedArray is one of the typed array types here.