I want to write a common confirm method like
var confirmDelete = function (fun) {
    if (confirm("Do you want to delete " + arguments[1])) {
        $(arguments[2]).remove();
        fun(arguments[3]);
    }
    return false;
}
It's working fine for fun with one parameter, but I want to suit for two or more parameters, how I can do it? 
 
     
     
     
     
    