Created
September 28, 2017 08:55
-
-
Save lsongdev/9f55b93c79c22af6ee68242f63663e6a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const get = (obj, path) => path.split('.').reduce((o, p) => o && o[p], obj); |
Author
lsongdev
commented
Oct 11, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment