Fix error in console need to check type before call hasOwnProperty

Look at this https://i.imgur.com/v2lpTuk.png
main
Julien 4 years ago committed by GitHub
parent 7954bd1a52
commit d09a87b814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,7 +19,7 @@
.split('.')
.reduce(
(value, method) =>
value && value.hasOwnProperty(method)
value && value instanceof Object && value.hasOwnProperty(method)
? value[method]
: undefined,
window