Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: How to have multiple and undetermined number of arguments for function? Date: Sun, 09 Oct 2016 20:09:56 +0100 Organization: A noiseless patient Spider Lines: 23 Message-ID: <87oa2ttk3f.fsf@bsb.me.uk> References: <9abdc041-3977-470c-a886-b6ae885818c8@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="566d29f216878c136c3553d728d92283"; logging-data="14066"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GHGuPFQORUf4dYOXcleaXD2IKe538Tfo=" Cancel-Lock: sha1:gJXQNfWifTc7M15tmmkjXXYhsKc= sha1:2zZgzbWYs7BJXwG3RX8/5bLbVfE= X-BSB-Auth: 1.d452449a6083b327a584.20161009200956BST.87oa2ttk3f.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:31542 justaguy writes: Please don't top post... > I attempted with the idea of taking an array as one argument without > success, for instance, > addSectionFunction([arg1,input,60],[arg2,input,15]) That's not "an array as one argument". That's two arrays and two arguments. > Not doable? All such argument schemes are possible: multiple non-array arguments, one single array argument, multiple arrays arguments, multiple arrays of arrays or arrays of arguments -- you name it. Did you read the MDN reference the was posted? Did it not give you basic mechanisms to do what you want? -- Ben.