Edit in JSFiddle
JavaScript
Result
let str = 'Hello'; let arr = {...str}; console.log('new onject',arr);