(target: T[], items: readonly T[])
| 422 | * source file of a few megabytes are that many. |
| 423 | */ |
| 424 | export function pushAll<T>(target: T[], items: readonly T[]): void { |
| 425 | for (let i = 0; i < items.length; i++) target.push(items[i]!); |
| 426 | } |
| 427 | |
| 428 | /** `Math.max(...values)` for a list of any length (see pushAll); -Infinity for none. */ |
| 429 | export function maxOf(values: readonly number[]): number { |
no test coverage detected