deleteProps()function
deleteProps(obj: T, ...keys: Key<T>[]): void
| Param | Type | |
|---|---|---|
obj | T | The object to remove the props from (modified by reference). required |
keys | Key<T>[] | The keys of the props to remove. required |
Remove several key/value entries from an object (by reference).
Examples
deleteProps(obj, "a", "b");