API Reference

Returns an object with specific keys removed.

function omitKeys(obj: { [key: string]: any }, ...keys: string[])

// Example:

const obj = { a: 1, b: 2, c: 3 }
 
omitKeys(obj, "b") //=> { a: 1, c: 3 }