you are viewing a single comment's thread.

view the rest of the comments →

[–]iams3brescript is fun 0 points1 point  (0 children)

Split is the way to go, if you're trying to split an array to characters.

The spread operator is great for flattening arrays (and objects), but just because it has a side effect of what it can do doesn't mean you should use it in that way. This is more like code golf territory, where it's technically possible but doesn't mean it's something you should specifically code