Showing
1 changed file
with
9 additions
and
0 deletions
splitreply.js
0 → 100644
1 | +let replyMsg = "손흥민, 득점 수, 세계 신기록, 등수, 팀 이름, 오차율, prediction" | ||
2 | + | ||
3 | +function splitReplyMsg(replyMsg){ | ||
4 | + var result = replyMsg.replace(/(\s*)/g, ''); | ||
5 | + result = result.split(','); | ||
6 | + return result; | ||
7 | +} | ||
8 | + | ||
9 | +console.log(splitReplyMsg(replyMsg)); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment