Why does spread syntax convert my string into an array?

Viewed 12969

Why does spread syntax convert my string into an array?

var v = 'hello';
var [, ...w] = v; // ["e", "l", "l", "o"]

Why is w not a string?

5 Answers
Related