DEV Community 👩‍💻👨‍💻

Discussion on: Daily Challenge #208 - Delete Occurrences of an Element

Collapse
avalander profile image
Avalander

Hmm... I wonder what happens if deleteNth is invoked more than once :P

Collapse
davidcoroian profile image
David

haha, you re right! Missed that one. Moved the obj initialisation inside the func.