lbundle
Version:
Small zero-configuration bundler build on top of Rollup.js and SWC for NPM libraries
21 lines (19 loc) • 494 B
JavaScript
const arrayFmt = (arr)=>arr.map((id, i, arr)=>{
const fmt = `\`${id}\``;
switch(i){
case arr.length - 1:
{
return `or ${fmt}`;
}
case arr.length - 2:
{
return fmt;
}
default:
{
return `${fmt},`;
}
}
}).join(' ');
export { arrayFmt };
//# sourceMappingURL=array-fmt.mjs.map