aboutsummaryrefslogtreecommitdiffstats
path: root/dist/plyr.polyfilled.js
diff options
context:
space:
mode:
authorPhilip Giuliani <philip.giuliani@keepinmind.info>2018-05-30 17:10:38 +0200
committerPhilip Giuliani <philip.giuliani@keepinmind.info>2018-05-30 17:10:38 +0200
commit6435ced70710fd04f3e4a14d9150c529b3ebedc5 (patch)
tree6324e714eb59b917dfb9b50541ae09c649e9a575 /dist/plyr.polyfilled.js
parent94dc0d176c5aa3899934e47e26349ebfbe225d01 (diff)
downloadplyr-6435ced70710fd04f3e4a14d9150c529b3ebedc5.tar.lz
plyr-6435ced70710fd04f3e4a14d9150c529b3ebedc5.tar.xz
plyr-6435ced70710fd04f3e4a14d9150c529b3ebedc5.zip
Return undefined when the key is not present.
Diffstat (limited to 'dist/plyr.polyfilled.js')
-rw-r--r--dist/plyr.polyfilled.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/plyr.polyfilled.js b/dist/plyr.polyfilled.js
index b00452fa..dc62c961 100644
--- a/dist/plyr.polyfilled.js
+++ b/dist/plyr.polyfilled.js
@@ -6690,9 +6690,9 @@ var utils = {
// Get a nested value in an object
- getDeep: function getDeep(object, value) {
- return value.split('.').reduce(function (obj, key) {
- return obj[key] || {};
+ getDeep: function getDeep(object, path) {
+ return path.split('.').reduce(function (obj, key) {
+ return obj && obj[key] || undefined;
}, object);
},