UNPKG

cpt-waffle-lotide

Version:
10 lines (8 loc) 211 B
const joinList = (array:string[]):string => { const result = array.map((word:string, i:number):string => { if (i === 0) return word; return ` ${word}` }) return result.join(); } export default joinList;