Write a function called findHometownByState which returns the first user which has a hometown of the state that is passed in code example

Example: Write a function called findHometownByState which returns the first user which has a hometown of the state that is passed in

findHometownByState('CA');
/*/
{
    username: "larry",
    email: "[email protected]",
    years_experience: 22.1,
    favorite_languages: ["Perl", "Scala", "C++"],
    favorite_editor: "Vim",
    hobbies: ["Fishing", "Sailing", "Hiking"],
    hometown: {
        city: "San Francisco",
        state: "CA"
    }
}
/*/

Tags:

Misc Example