Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 322 Bytes

README.md

File metadata and controls

4 lines (3 loc) · 322 Bytes

Drop-it

Given the array arr, iterate through and remove each element starting from the first element (the 0 index) until the function func returns true when the iterated element is passed through it.

Then return the rest of the array once the condition is satisfied, otherwise, arr should be returned as an empty array