Last Updated: February 25, 2016
·
391
· shouya

A handy way to do Array#join

Use [1, 2, 3] * ", " instead of [1, 2, 3].join(", ").

1 Response
Add your response

Handy but I would prefer second approach since it's self-documenting one.

over 1 year ago ·