Generating an array based on min and max number in angular 4 : I need to generate an array of numbers that has difference of 5000 between them in Typescript angular 4.

So for e.g the function should be able to take min and max and based on that it should generate the numbers. So consider the min is 0 and max is 20000, the array generated should be 

0,5000,10000,15000,20000

