Encountering Syntax Errors After Upgrading Angular Plugin
I am facing some syntax errors after attempting to upgrade a plugin in a system that was originally developed by someone else. Although I am relatively new to Angular, I tried to simply replace the include file with the newer src version. However, I'm receiving an Unexpected character error related to double question mark operators:
].reduce((res, prop) => res ?? (prop in document.documentElement ? prop : null), null);
These operators appear to be performing null coalescing operations, but I recall using || for this purpose in Javascript. Strangely, no one else seems to have reported this issue in the plugin's GitHub repository, and it has persisted across multiple versions over the past year. This leads me to believe that the mistake lies on my end.
The plugin in question can be found here: https://github.com/kamilkp/angular-vs-repeat
Any insights or help would be greatly appreciated. Thank you!