How to check if JavaScript code is running in strict mode?
30 December 2022 (Updated 31 December 2022)
Declare a helper function at the global level:
If JavaScript code is running in strict mode, this
will always be undefined if unspecified.
Now, you can do something like:
Tagged:
JavaScript
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment