Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jul 17th, 2018 55 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. function manyArgs() {
  2.   for (var i = 0; i < arguments.length; ++i)
  3.     alert(arguments[i]);
  4. }
  5.    
  6. function manyArgs() {
  7.   for (var i = 0; i < arguments.length; ++i)
  8.     alert(arguments[i]);
  9. }
  10.    
  11. function manyArgs() {
  12.   for (var i = 0; i < arguments.length; ++i)
  13.     alert(arguments[i]);
  14. }
  15.    
  16. function manyArgs() {
  17.   for (var i = 0; i < arguments.length; ++i)
  18.     alert(arguments[i]);
  19. }
  20.    
  21. function foo() {
  22.   var args = Array.prototype.slice.call(arguments, 0);
  23.   // ...
  24.    
  25. function toArray() {
  26.    return arguments;
  27. }
  28.  
  29. var myargs = toArray(1,2,3,4,5,6);
  30.    
  31. var arr = [];
  32. function testArray() {
  33.     Array.prototype.push.apply(arr, arguments);
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top