mirror of
https://github.com/flarum/framework.git
synced 2024-12-14 08:03:37 +08:00
13 lines
341 B
TypeScript
13 lines
341 B
TypeScript
|
/**
|
||
|
* The `punctuateSeries` helper formats a list of strings (e.g. names) to read
|
||
|
* fluently in the application's locale.
|
||
|
*
|
||
|
* ```js
|
||
|
* punctuateSeries(['Toby', 'Franz', 'Dominion']) // Toby, Franz, and Dominion
|
||
|
* ```
|
||
|
*
|
||
|
* @param {Array} items
|
||
|
* @return {VirtualElement}
|
||
|
*/
|
||
|
export default function punctuateSeries(items: any[]): any;
|