deleteProperty method

bool deleteProperty(
  1. Object target,
  2. Object propertyKey
)

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

Implementation

_i2.bool deleteProperty(
  _i2.Object target,
  _i2.Object propertyKey,
) =>
    _i3.callMethod(
      this,
      'deleteProperty',
      [
        target,
        propertyKey,
      ],
    );