Basic usage

Given an object and a list of keys in the object, returns a new object without any of the given keys.

import { omit } from 'radash'

const fish = {
  name: 'Bass',
  weight: 8,
  source: 'lake',
  brackish: false
}

omit(fish, ['name', 'source']) // => { weight, brackish }

Testing

This _.omit function is 100% covered by tests. See them and contribute at GitHub.

Source

See the source for _.omit on GitHub.