I see your point, but the title currently states for...of and not for...in. The main difference between for...of and spread operator is that the former iterates over iterable objects (such as array, object literals etc) while the latter is responsible for expanding the list. These two methods are not identical even if the name indicates few similarities.

Software Engineer sharing interesting tech topics

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store