format

fun format(list: JsIterable<ERROR CLASS: Symbol not found for JsString>): String(source)

Returns a string with a language-specific representation of the list.

Return

{string} A language-specific formatted string representing the elements of the list.

MDN Reference.

Parameters

list
  • An iterable object, such as an Array.

Throws

`TypeError`

if list includes something other than the possible values.