I see more and more articles telling us that we should drop our old function
or var
keywords to switch to the new and better () => {}
, const
and let
. These features have many advantages and you should use them. But not as drop-in replacements.
🚨 ES6 and ESNext new features are not drop-in replacements for ES5 deprecated features
in TypeScript, JavaScript