Получить массив от String JavaScript
const string = 'hi there';
const usingSplit = string.split('');
const usingSpread = [...string];
const usingArrayFrom = Array.from(string);
const usingObjectAssign = Object.assign([], string);
// Result
// [ 'h', 'i', ' ', 't', 'h', 'e', 'r', 'e' ]
// From https://www.samanthaming.com/tidbits/83-4-ways-to-convert-string-to-character-array/
DevShot