deletePropertybeginnerconst obj = { a: 1, b: 2 }
Reflect.deleteProperty(obj, 'a')
console.log(obj) // β { b: 2 }
console.log('a' in obj) // β falseReflect.deleteProperty() deletes a property from an object, returning true on success, just like the delete operator.
Reflect.deleteProperty() returns true when the deletion succeeds (or when the key doesn't exist).
Challenge: Verify that Reflect.deleteProperty({x: 1}, 'x') returns true.