main issue: if you have return statements in a loop, and one of those will always execute, the loop will stop at first iteration so it’s like it is not there
Next, you are iterating over the properties if the object and then checking if it has the property of current iteration, which, it does because it’s its own already
you need to check if the object has specific properties:
Finish writing this function so that it returns true only if the users object contains all four names, Alan , Jeff , Sarah , and Ryan , as keys, and false otherwise.
what you are saying is not right, obj is an object, user is a string. The for...in loop iterates over the property names of the object in string form.
the goal of the challenge is to check if the passed in object, obj, has the required properties, Alan, Sarah, etc