Merge pull request #3302 from Julien-ADDREA/patch-1

Fix error in console need to check type before call hasOwnProperty
main
Elbert Alias 4 years ago committed by GitHub
commit 38d4f3ec59
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

Loading…
Cancel
Save