Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #29421
| Path | csiph.com!news.swapon.de!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Stefan Weiss <krewecherl@gmail.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Still trouble with array of arrays. |
| Date | Sat, 23 Jan 2016 23:51:47 +0100 |
| Organization | albasani.net |
| Lines | 19 |
| Message-ID | <n81063$1bt$1@news.albasani.net> (permalink) |
| References | <8d147825-0837-4f7a-8cb9-bb5607dc0ae1@googlegroups.com> <c40244a0-013c-4e06-8908-cfeccb96eee0@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.albasani.net 6wtDcRs+Jhu9GVScbQKoCXd1nB2qyuHfgUmO7xOoEv6R7yxUAc8jnOu6EZXNgBoi2cvgB2RYVQ4Fmk9H8f0ZOg== |
| NNTP-Posting-Date | Sat, 23 Jan 2016 22:51:47 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="jK/zEeeRN41Qvdp6pGS+VzVzkLtRKDO0ZAyhua5q+oLcd9EM4FQORBYqrJA+nyTIk3USRjyzjE+Lna/8iqzXUVZbUMLyCv4Nzy4vnAUrD0DhUMhEsFidLYZeuz1jsVjB"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
| In-Reply-To | <c40244a0-013c-4e06-8908-cfeccb96eee0@googlegroups.com> |
| Cancel-Lock | sha1:JOXdyTNmtBcvV94xWwwEgI4C1dM= |
| Xref | csiph.com comp.lang.javascript:29421 |
Show key headers only | View raw
On 01/23/2016 23:49, jonas.thornvall@gmail.com wrote:
> Den lördag 23 januari 2016 kl. 23:25:50 UTC+1 skrev jonas.t...@gmail.com:
>> for(i = 0; i < operandArr.length; i ++ )
>> {
>> metaOpArr[i] = operandArr[i].split("").map(Number).reverse();
>> }
>>
>> If operandArr=[12,5,28] will not metaOpAr[8] contain 2,1 and be an array in itself?
>
> metaOpArr[0] contain 2,1 and be an array in itself?
No, because numbers don't have a split() method. If operandArr is ["12",
"5", "28"] instead, then metaOpArr[0] is indeed the array [2, 1].
I don't know it that's good or bad, because you forgot to tell us what
your trouble with arrays is, and what you want the code to do.
- stefan
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Still trouble with array of arrays. jonas.thornvall@gmail.com - 2016-01-23 14:25 -0800
Re: Still trouble with array of arrays. jonas.thornvall@gmail.com - 2016-01-23 14:49 -0800
Re: Still trouble with array of arrays. Stefan Weiss <krewecherl@gmail.com> - 2016-01-23 23:51 +0100
csiph-web