It’s a way to invoke anonymous function. Popular with language like JavaScript. I am not sure what language you are using but I can tell it’s “IIFE”.
More details, if you are interested:
When a function has no name, it’s called anonymous
- (){} // function and it’s body
Now you want to execute it:
- (){}() // call the function right away to execute
This is called IIFE ( Immediately invoked Function Expression ).