I need to write a function using Array.map() that takes 3 parameters: an array, a function that doubles the elements of the array and the number of times to perform the function.

For example, if I had `([1, 2, 3], double, 2)` it would return `[4, 8, 12]`.

My code so far:

```js
const feedback = (array, func, num) => {
  return array.map(func)
}

// Helper function
function double(element) {
  return element * 2;
}
```

I'm struggling with how to incorporate the third parameter num. Since I need to repeat the function n number of times, I'm thinking I need a for loop? Any help would be much appreciated.