Click here to Skip to main content
14,486,704 members
Rate this:
Please Sign up or sign in to vote.
See more:
function ofAge(arr){

return arr.filter( arr.age >= 18)
}
console.log(ofAge([
{ name:"angelina jolie", age: 80 },
{ name:"eric jones", age: 2 },
{ name:"paris hilton", age: 5 },
{ name:"kanye west", age: 16 },
{ name:"bob ziroll", age: 100 },
]))

What I have tried:

not sure what to do here. seriously stumped here.
Posted
Updated 17-Mar-20 22:34pm
Comments
OriginalGriff 18-Mar-20 2:59am
   
And?
What does it do that you didn't expect, or not do that you did?
What have you tried to fix it?
Where are you stuck?
What help do you need?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100