bpms_site/.svn/pristine/91/9175decda06ddfaef6403eb29782b832858225d8.svn-base
2025-11-02 16:38:49 +03:30

5 lines
233 B
Plaintext

export function getOxfordCommaList(items) {
return items.map((v, index, { length })=>(index > 0 ? index === length - 1 ? length > 2 ? ", and " : " and " : ", " : "") + v).join("");
}
//# sourceMappingURL=oxford-comma-list.js.map