i will tell you what logic i can’t get ,
if i used func(element)
it should return true or false when i make my condition i remove all what result is false and that’s not required,
the required is to remove till the first true and return the rest elements even if it is not met
that’s not completely true, you need to remove elements until you find the first one that satisfy the test, then you need to return that and the elements after that without removing anything else
You do not need to use splice or slice. You can use a loop. But you need to understand what the instructions are asking for before you can code something up that does what the instructions want.
i did it, i knew i will pass it since you told me i can use plain loop, you pushed the stress away from me, i couldn’t do it without your words.
thank you