// Write a function called validateKeys. This function takes two arguments, 'object' and 'expectedKeys'. // 'object' is an object that we want to valdiate keys for. 'expectedKeys' is an array of keys that we EXPECT TO FIND // on the object. // validateKeys should return false if 'object' contains extra keys not in 'expectedKeys' or missing keys // validateKeys should return false if 'object' contains different keys than in 'expectedKeys' // ...therefore, // validateKeys should return true if object has all of the keys from expectedKeys and no additional keys // running the function with `objectA` and `expectedKeys` // should return `true` var objectA = { id: 2, name: 'Jane Doe', age: 34, city: 'Chicago' } // running the function with `objectA` and `expectedKeys` // should return `false` var objectB = { id: 3, age: 33, city: 'Peoria' } // ********** MY SOLUTION HERE ***************** // object = argument thats an object // expectedKeys = argument thats an array of keys var expectedKeys = [ 'id', 'name', 'age', 'city' ]; function validateKeys(object, expectedKeys) { if (Object.keys(object).length !== expectedKeys.length) { return false; } for (var i=0; i