Using the “in” operator The in operator returns true if the specified property is present in the specified object or in its prototype chain, otherwise it returns false. const app = { name: 'Instagram', type: 'Social Media' };
console.log('name' in app); // true
console.log('release_date' in app); // false Using the Reflect.has() method Reflect is a built-in object that…