Use the some Method to Check that Any Elements in an Array Meet a Criteria

Use the some Method to Check that Any Elements in an Array Meet a Criteria
0.0 0

#1

Tell us what’s happening:

Your code so far


function checkPositive(arr) {
  // Add your code below this line
  arr.some(function (x){
    return x>0;
  });
  
  // Add your code above this line
}
checkPositive([1, 2, 3, -4, 5]);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/use-the-some-method-to-check-that-any-elements-in-an-array-meet-a-criteria


#2

I understood ,I miss a return