You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

object-path-immutable

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-path-immutable - npm Package Compare versions

Comparing version

to
4.0.1

{
"name": "object-path-immutable",
"version": "4.0.0",
"version": "4.0.1",
"description": "Modify deep object properties without modifying the original object (immutability). Works great with React and Redux.",

@@ -5,0 +5,0 @@ "author": "Mario Casciaro <m@mario.fyi>",

@@ -57,3 +57,3 @@ [![build](https://img.shields.io/travis/mariocasciaro/object-path-immutable.svg?style=flat-square)](https://travis-ci.org/mariocasciaro/object-path-immutable)

```javascript
const newObj = immutable(obj).set('a.b', 'f').del('a.c.0').value()
const newObj = immutable.wrap(obj).set('a.b', 'f').del('a.c.0').value()
```

@@ -60,0 +60,0 @@