foxts
Version:
Opinionated collection of common TypeScript utils by @SukkaW
1 lines • 195 B
JavaScript
function t(e,r=",",n=!1){let l,o=e.length;if(0===o)return"";n&&(o=(e=Array.from(new Set(e))).length);let f="",i=0;for(let t=0;t<o;t++)(l=e[t])&&(i?f+=r:i=1,f+=l);return f}export{t as stringJoin};