Replace for loop with Array.find() to Get Object by Property Value
Refactor the code to replace the for loop with Array.prototype.find() so that
foundUser
is set to the first user in the users
array whose id
is 42.Premium
JavaScript
Console