Skip to content

deleteProperties<T>

Deletes multiple properties from an object.

Import:

import { deleteProperties } from 'obsidian-dev-utils/object-utils';

Signature:

function deleteProperties(obj: T, propertyNames: (keyof T)[]): boolean

Parameters:

ParameterTypeDescription
objTThe object to delete the properties from.
propertyNames(keyof T)[]The names of the properties to delete.

Returns: booleantrue if any of the properties were present, otherwise false.