1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-05-18 12:02:53 +02:00

build(deps): update latest, fix issue with jest

This commit is contained in:
Divlo
2021-08-27 13:03:41 +02:00
parent d795650689
commit d934d6e7c2
7 changed files with 1705 additions and 2067 deletions

View File

@ -1,6 +1,6 @@
import readline from 'node:readline'
const removeByIndex = <T = any>(array: T[], index: number): T[] => {
const removeByIndex = <T = unknown>(array: T[], index: number): T[] => {
const result = [...array]
result.splice(index, 1)
return result