let shit = 'shit';
shit.split();
["shit"]
shit.split('');
(4) ["s", "h", "i", "t"]
Array.from(shit);
(4) ["s", "h", "i", "t"]
shit.split('');
(4) ["s", "h", "i", "t"]
[...shit];
(4) ["s", "h", "i", "t"]
'TIL > JavaScript' 카테고리의 다른 글
이니셜 전화번호부 만들기. reduce 함수 사용. (0) | 2020.01.14 |
---|---|
Object.keys( ) (0) | 2020.01.08 |
push() (0) | 2020.01.08 |
push() (0) | 2020.01.08 |
JSON.parse && JSON.stringify // get, put, post (0) | 2019.12.03 |
comment