zenika-open-source / immutadot

immutadot is a JavaScript library to deal with nested immutable structures.
https://immutadot.zenika.com
MIT License
178 stars 5 forks source link

apply should support array paths #343

Open nlepage opened 5 years ago

nlepage commented 5 years ago

Example

set({ english: { greeting: 'Hi' } }, [['prop', 'english'], ['prop', 'greeting']], 'Hello')

// Support simplified for prop and index
set({ english: { greeting: 'Hi' } }, ['english', 'greeting'], 'Hello')