We can pretend for using unary operator as an IIFE like below:
+function(){
return 5;
}();//5
-function(){
return 5;
}();//-5
~function(){
return 5;
}();//-6
!function(){
return 5;
}();//false
So, is there real-world use case for such IIFE or we should avoid using IIFE by using unary operator and just use real IIFE:
(function(){
return 5;
}()); //5