How can I turn an array of elements into uppercase? Expected output would be:
[\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\"] => [\"M
In your example, replace 'each' with 'map'.
While 'each' iterates through your array, it doesn't create a new array containing the values returned by the block.