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?
Yes, that's correct, it's indeed a typo. Thanks for reporting
…On Wed, Mar 14, 2018, 12:22 Paul Duguet ***@***.***> wrote:
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?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#28>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAGbZxgc5NsnYOkxvgEFr8kf2rkGv94bks5teQuFgaJpZM4SqVPH>
.
It's fixed now