function dropElements(arr, func) {
	let result = [];
	for (let i = 0; i <= arr.length; i++) {
		if (func(arr[i])) {
			// If func returns true, take a copy of the original array 
			// from the current element till the end and break the for 
			// loop
			result = arr.slice(i);
			break
		}
	}

  return result;
}
// Then return the rest of the array once the condition is satisfied, otherwise, arr should be returned as an empty array.
Then return the rest of the array once the condition is satisfied, otherwise, arr should be returned as an empty array.
Then return the rest of the array once the condition is satisfied otherwise arr should be returned as an empty array .
function dropElements(arr, func) {
	let result = [];
	for (let i = 0; i <= arr.length; i++) {
		if (func(arr[i])) {
			result = arr.slice(i);
			break
		}
	}
  return result;
}
function dropElements ( arr , func ) { let result = [ ] ; for ( let i = 0 ; i <= arr . length ; i ++ ) { if ( func ( arr [ i ] ) ) { result = arr . slice ( i ) ; break } } return result ; }
Then return the rest of the array once the condition is satisfied, otherwise, arr should be returned as an empty array.
Then return the rest of the array once the condition is satisfied otherwise arr should be returned as an empty array .
// If func returns true, take a copy of the original array  // from the current element till the end and break the for  // loop