• How to solve this one?


I would like to give some feedback about ...

From: https://js.checkio.org/mission/remove-all-before/solve/


Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36

Here is my code: const removeAllBefore = (values, num) => {

return values.slice(values.indexOf(num));


Every single test runs fine if i check the assersions, although when i run the test here on checkio i get this:

assert.js:104 throw new AssertionError(obj); ^

AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal:

[ 7 ]

should loosely deep-equal

[ 1, 1, 5, 6, 7 ] at /opt/project/test.ts:15:8

What to do?