Try out the helper functions below. $.map([1, 2, 3]) { $0 * 2 }