I noticed in some transpiled code recently an immediately invoked function expression that took the form of e.g.:
(0, function () { console.log('invoked!'); })();
I am used to writing this simply as:
(function () { console.log('invoked!'); })();
What does the 0,
bit do here?