(length: number, initialValue: number)
| 5 | * @returns An array of numbers |
| 6 | */ |
| 7 | export function arraySeq(length: number, initialValue: number): number[] { |
| 8 | return new Array(length).fill(0).map((_, i) => i * initialValue); |
| 9 | } |
| 10 | |
| 11 | /** |
| 12 | * Creates an array where each element is the sum of all previous elements |
no outgoing calls
no test coverage detected