diff options
author | Philip Giuliani <philip.giuliani@keepinmind.info> | 2018-05-30 17:30:10 +0200 |
---|---|---|
committer | Philip Giuliani <philip.giuliani@keepinmind.info> | 2018-05-30 17:30:10 +0200 |
commit | a8fa125a96def9f7b41796375c11e2e1e753d28f (patch) | |
tree | 29d49edd8ee926ca6ba547a0d33c6ee63756dad1 /src/js/utils.js | |
parent | 6435ced70710fd04f3e4a14d9150c529b3ebedc5 (diff) | |
download | plyr-a8fa125a96def9f7b41796375c11e2e1e753d28f.tar.lz plyr-a8fa125a96def9f7b41796375c11e2e1e753d28f.tar.xz plyr-a8fa125a96def9f7b41796375c11e2e1e753d28f.zip |
Refactor getDeep method
Diffstat (limited to 'src/js/utils.js')
-rw-r--r-- | src/js/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/utils.js b/src/js/utils.js index ea2dc72d..b6ba0941 100644 --- a/src/js/utils.js +++ b/src/js/utils.js @@ -730,7 +730,7 @@ const utils = { // Get a nested value in an object getDeep(object, path) { - return path.split('.').reduce((obj, key) => (obj && obj[key]) || undefined, object); + return path.split('.').reduce((obj, key) => obj && obj[key], object); }, // Get the closest value in an array |