In the previous sections, the destructuring was applied to arrays. But you can destructure any object that implements the iterable protocol.
Many native primitive types and objects are iterable: arrays, strings, typed arrays, sets, and maps.
For example, you can destructure a string to characters:
const str = 'cheese';