Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

Conversation

@benbrimeyer
Copy link

Adds the following methods to Dictionary:

  • updateIn(dictionary, keyPath, updater, notSetValue)
  • getIn(dictionary, keyPath, default)
  • setIn(dictionary, keyPath, newValue)
  • removeIn(dictionary, keyPath)

Implementations and test cases are similar to Immutable.js's implementations of these methods.

* implement getIn

* updateIn-working

* unfocus test

* add setIn

* add removeIn

* add test for throwing

* clean up assertions
@benbrimeyer benbrimeyer closed this Mar 2, 2021
@benbrimeyer
Copy link
Author

Looks like llama has refactored a bit, will rebase off upstream.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant