ES2019: Unexpected character ‘.’
-
Found in the file duracelltomi-google-tag-manager/js/gtm4wp-form-move-tracker.js?ver=1.14.2
Is an optional chaining operator
const elem = event.target?.closest("input,select,textarea,button,meter,progress");This is an ES2019 feature and is really not that well supported (90%) mostly in the mobile browsers section
Please don’t ship es2019 code directly, either transpile it before with babel to es5 or 6 which have wider support or don’t use any es7+ syntax please as this is restricting a lot of our users from properly using the website
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘ES2019: Unexpected character ‘.’’ is closed to new replies.