I tested the following code for drop it in the console and it seems to work but it won't pass.
function drop(arr, func) { // Drop them elements. if (arr.length) { if (func(arr[0])) { console.log(arr); return arr; } else { arr.shift(); drop(arr, func); } } else { return []; } } drop([1, 2, 3, 4], function(n) {return n >= 3; });
Issue Description
I tested the following code for drop it in the console and it seems to work but it won't pass.
Browser Information
My Code
Screenshot