deleteProperties<T>
Deletes multiple properties from an object.
Import:
import { deleteProperties } from '@mnaoumov/typescript-lib/object-utils';Signature:
function deleteProperties($object: T, propertyNames: (keyof T)[]): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
$object |
T | |
propertyNames |
(keyof T)[] | The names of the properties to delete. |
Returns: boolean — true if any of the properties were present, otherwise false.