You can use an _
inside an arrow function to omit the ()
if there are no arguments, for example:
let a = 4;
let b = 2;
(() => a + b + 100)()
is equivalent to
let a = 4;
let b = 2;
(_ => a + b + 100)()
You can use an _
inside an arrow function to omit the ()
if there are no arguments, for example:
let a = 4;
let b = 2;
(() => a + b + 100)()
is equivalent to
let a = 4;
let b = 2;
(_ => a + b + 100)()