UNPKG
cpt-waffle-lotide
Version:
latest (1.0.0)
1.0.0
LoTide in Typescript
github.com/vasiliy-klimkin/lotide-ts
vasiliy-klimkin/lotide-ts
cpt-waffle-lotide
/
dist
/
joinList.ts
10 lines
(8 loc)
•
211 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
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;