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