formatToParts
Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
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.