deleteProps()function

deleteProps(obj: T, ...keys: Key<T>[]): void
ParamType
objT
The object to remove the props from (modified by reference). required
keysKey<T>[]
The keys of the props to remove. required

Remove several key/value entries from an object (by reference).

Examples

deleteProps(obj, "a", "b");