Description
Strings can be JavaScript Type Conversion into JavaScript Arrays with the Spread (…) operator:
Syntax
const chars = [..."abc"];
console.log(chars); // Array(3) [ "a", "b", "c" ]Strings can be JavaScript Type Conversion into JavaScript Arrays with the Spread (…) operator:
const chars = [..."abc"];
console.log(chars); // Array(3) [ "a", "b", "c" ]