hasProperty function const hasProperty = (object, property) => Object.hasOwn(object, property)