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:
@ -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
|
||||
|
Reference in New Issue
Block a user