ran npm run tdd
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
module.exports = geometricProgression = (end, start = 1, step = 2) =>
|
||||
const geometricProgression = (end, start = 1, step = 2) =>
|
||||
Array.from({ length: Math.floor(Math.log(end / start) / Math.log(step)) + 1 }).map(
|
||||
(v, i) => start * step ** i
|
||||
);
|
||||
);
|
||||
module.exports = geometricProgression
|
||||
Reference in New Issue
Block a user