Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This lodash function will find the key value in any object and it will add/update [title] key/value
_.set(_.find(events, { id: 1 }), 'title', 'New title');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment