I would like to create a function that returns an array of multiples of a number within an array.
The first argument is a number and the second is the max number of the range.
For example:
getMultiples(5,24)
Output: [5,10,15,20]
*If the range is less than the first argument it should return an empty array.
getMultiples(5,0)
Output: []
Any idea how can I achieve this? Help