Skip to content

Instantly share code, notes, and snippets.

@sverrejoh
Created November 4, 2015 14:09
Show Gist options
  • Select an option

  • Save sverrejoh/5f2ee18e5560dbe0f0d7 to your computer and use it in GitHub Desktop.

Select an option

Save sverrejoh/5f2ee18e5560dbe0f0d7 to your computer and use it in GitHub Desktop.
Add to a List in a Map
state.set(action.tickedId, (state.get(action.ticketId) || Immutable.List()).push(action.file));
@sverrejoh
Copy link
Author

state.set(action.tickedId, state.get(action.ticketId, Immutable.List()).push(action.file));

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