What does js function (parameter, parameter) mean

I really don"t know what this means.

May.13,2022

take a few steps to see

the first one is comma operator

is probably used to evaluate from left to right and then return the last value
so:

const c = {
 a: function () {
   (0, _utils.func)()
 }
}

c.a() // true

so (0, anonymous function) (function call parameter) is written to ensure that the function is executed in the window scope.

Menu