deleteProperty<T>
Deletes a property from an object.
Import:
import { deleteProperty } from 'obsidian-dev-utils/object-utils';Signature:
function deleteProperty(obj: T, propertyName: keyof T): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
obj | T | The object to delete the property from. |
propertyName | keyof T | The name of the property to delete. |
Returns: boolean — true if the property was present, otherwise false.