mariocasciaro / object-path-immutable

Modify deep object properties without modifying the original object (immutability). Works great with React and Redux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

enhancement: support escaped dots as single property

ilovett opened this issue · comments

immutable(state).set('nest.nest.nest.192\.168\.1\.0.details', blah)

In this example there would be a property 192.168.1.0 instead of nested 192 -> 168 -> 1 -> 0

This sounds like a very nice idea. Looking for volunteers for implementing this.

I ended up working around this by using an array ['nest', 'nest', '192.168.1.0', 'details']