Skip to content

Welshman Docs / @welshman/lib / omit

Function: omit() ​

omit<T>(ks, x): T

Defined in: packages/lib/src/Tools.ts:151

Creates new object with specified keys removed

Type Parameters ​

• T extends Obj<any>

Parameters ​

ks ​

string[]

Keys to remove

x ​

T

Source object

Returns ​

T

New object without specified keys