omit

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
2
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
850 B
Returns a partial copy of an object omitting the keys specified.
1 contributor
Install omit as a package?
Copied
npm i @bit/justin-capalbo.ramda.omit
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
omit (
names:Array,
obj:Object
) : Object

Returns a partial copy of an object omitting the keys specified.

Example
R.omit(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, c: 3}
Arguments
names: Array

an array of String property names to omit from the new object

obj: Object

The object to copy from

Returns
Object

A new object with properties from `names` not on it.

Help and resources