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

Typo in README example

OzTK opened this issue · comments

From this section: https://github.com/mariocasciaro/object-path-immutable#set-initialobject-path-value

It seems this example doesn't work:

const newObj3 = immutable.set(obj, ['a', 'b'], v => 'f')

Doesn't set take a value only and not an updater?

It's fixed now