Files
novarix.uk/node_modules/next/dist/lib/oxford-comma-list.js
T
Kismet Hasanaj 39a8a128be including-modules
2026-05-03 00:14:08 +02:00

15 lines
451 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "getOxfordCommaList", {
enumerable: true,
get: function() {
return getOxfordCommaList;
}
});
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