formatToParts
fun formatToParts(list: JsIterable<ERROR CLASS: Symbol not found for JsString>): ReadonlyArray<ERROR CLASS: Symbol not found for JsAny>(source)
Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
Return
{{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.
Parameters
list
An iterable object, such as an Array, to be formatted according to a locale.
Throws
`TypeError`
if list includes something other than the possible values.