I have an array of characters:
'1','2','3','4','5','6','7','8','9'
That I need to transform into:
'(1)','(2)','(3)','(4)','(5)','(6)','(7)','(8)','(9)'
I recall there is a function to do so in coffeescript but cannot locate where or how it was defined.
How can I efficiently append opening and closing parenthesis to each object in the array?
'('and')'character to the beginning and to the end of each string in an array?1..9, assuming that's your actual code.