Skip to content

pantoken / renderers/web-components/src / formatList

ฟังก์ชัน: formatList()

formatList(locale, items, options?): string

อัลฟา

ตัวจัดรูปแบบรายการที่ขึ้นกับโลแคล (เช่น "a, b, and c" ในภาษาอังกฤษ โดยใช้คำเชื่อมที่ถูกต้องในภาษาอื่น ๆ).

พารามิเตอร์

locale

string

items

readonly string[]

options?

ListFormatOptions

คืนค่า

string