📓 TIL

[JS] 문자열을 배열로 변환하기

k_m_jin 2024. 2. 5. 19:46

전개 연산자 ( spread operator ) 사용

const string = 'hello'
const array = [...string]
반응형