UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

1 lines 202 B
"use strict";exports.stringJoin=function(t,e=",",r=!1){let n,i=t.length;if(0===i)return"";r&&(i=(t=Array.from(new Set(t))).length);let l="",o=0;for(let r=0;r<i;r++)(n=t[r])&&(o?l+=e:o=1,l+=n);return l};