Skip to content

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)[]): boolean

Parameters:

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.