Why am I receiving this type error in my function

This is my Javascrip file that shows for my tetris game, like in the game the object is to cover a row and have it removed however in the removed squares section it will not work giving me a type error saying squares.splice is not a function

function scoreBoard () {
    for (let i = 0; i < 199; i +=width) {
        const rows = [i, i+1, i+2, i+3, i+4, i+5, i+6, i+7, i+8, i+9]

        if(rows.every(index => squares[index].classList.contains('taker'))) {
            score +=10
            scoreDisplay.innerHTML = score
            rows.forEach(index => {
                squares[index].classList.remove('taker')
            })
            const removedSquares = squares.splice(i, width)
            console.log(removedSquares)
        }

    }
}