(elements: Iterable<string>)
| 286 | return result |
| 287 | } |
| 288 | formatToParts(elements: Iterable<string>): Part[] { |
| 289 | validateInstance(this, 'format') |
| 290 | const parts = createPartsFromList( |
| 291 | ListFormat.__INTERNAL_SLOT_MAP__, |
| 292 | this, |
| 293 | stringListFromIterable(elements) |
| 294 | ) |
| 295 | if (!Array.isArray(parts)) { |
| 296 | return [parts as Part] |
| 297 | } |
| 298 | const result: Part[] = [] |
| 299 | for (const part of parts) { |
| 300 | result.push({...part} as Part) |
| 301 | } |
| 302 | return result |
| 303 | } |
| 304 | |
| 305 | resolvedOptions(): ResolvedIntlListFormatOptions { |
| 306 | validateInstance(this, 'resolvedOptions') |
nothing calls this directly
no test coverage detected