Newer
Older
alert / js / node_modules / flarum / common / helpers / punctuateSeries.d.ts
@Réz István Réz István on 18 Nov 2021 341 bytes first commit
/**
 * 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;