deleteProperty

fun deleteProperty(target: Any, propertyKey: PropertyKey): Boolean(source)

Removes a property from an object, equivalent to delete target[propertyKey], except it won't throw if target[propertyKey] is non-configurable.

Parameters

target

Object from which to remove the own property.

propertyKey

The property name.