var r = document.getElementById("r"); r.innerHTML = (function(){ return _.isArguments(arguments); })(1, 2, 3); // => true