Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

dissoc

v0.26.1arrow_drop_down
v0.26.1
STATUS
Passing
DOWNLOADS
43
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
8 months ago
SIZE
826 B
Returns a new object that does not contain a `prop` property.
1 contributor
Use dissoc in your project ?
Copied
npm i @bit/ramda.ramda.dissoc
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
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';
revert changes
reload
toggle layout
maximize
dissoc("b", {
  a: 1,
  b: 2,
  c: 3
});
modifieddraft
chevron_left
chevron_right
dissoc (
prop:String,
obj:Object
) : Object

Returns a new object that does not contain a prop property.

Example
R.dissoc('b', {a: 1, b: 2, c: 3}); //=> {a: 1, c: 3}
Arguments
prop: String

The name of the property to dissociate

obj: Object

The object to clone

Returns
Object

A new object equivalent to the original but without the specified property