DEV Community

Discussion on: Let's Count Some Sheep!

Collapse
 
joerter profile image
John Oerter

Fun article!

The array.splice([i], 1); line should be array.splice(i, 1). Is that what you were looking for?