X-Received: by 10.66.232.71 with SMTP id tm7mr458532pac.28.1475967796696; Sat, 08 Oct 2016 16:03:16 -0700 (PDT) X-Received: by 10.157.63.185 with SMTP id r54mr2607807otc.14.1475967796607; Sat, 08 Oct 2016 16:03:16 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!l13no1353502itl.0!news-out.google.com!w143ni4078itb.0!nntp.google.com!o19no1359234ito.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.javascript Date: Sat, 8 Oct 2016 16:03:16 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=64.134.145.63; posting-account=OqV0cQoAAADtRo2i3qWfieIZ6a02VVn5 NNTP-Posting-Host: 64.134.145.63 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to have multiple and undetermined number of arguments for function? From: justaguy Injection-Date: Sat, 08 Oct 2016 23:03:16 +0000 Content-Type: text/plain; charset=UTF-8 Xref: csiph.com comp.lang.javascript:31522 Ok, thanks for the point, thought so. Now, I can do something like If (typeof arguments) { // get each argument now For (counter=0; counter < arguments.length; counter++) { arguments [counter]; // and pass each argument for further action } }