Update snippet descriptions
This commit is contained in:
@ -13,7 +13,7 @@ Returns an error if `step` equals `1`.
|
||||
```js
|
||||
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
|
||||
(_, i) => start * step ** i
|
||||
);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user