I have an array of values in Coffeescript such that:
arr = ['key1': 1, 'key2': 2, 'key3': 3]
I want to transform this array into an array of just values. Basically,
arr.map (iter) -> iter.value # arr => [1,2,3]
=> []
I've attempted several permutations of this, but I just keep getting back an empty array. Any tips?
arr = {'key1': 1, 'key2': 2, 'key3': 3}?(iter) ->?