Created
November 17, 2020 15:16
-
-
Save azimidev/5bb59aed8bdb4998e9009aba997bf63c to your computer and use it in GitHub Desktop.
This lodash function will find the key value in any object and it will add/update [title] key/value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.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