Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #37756

Re: Comparisson with a list arguments.

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.javascript
Subject Re: Comparisson with a list arguments.
Date Tue, 12 Nov 2019 12:13:14 +0100
Lines 27
Message-ID <h2vieaFondnU1@mid.individual.net> (permalink)
References <c1300623-8fa6-483c-819a-6627d20c444d@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace individual.net pRAcgbbFk9rCl3DEOdAGlAI63lRPnzHUK+WW091JGJ9CVtw6p0
Cancel-Lock sha1:G6Hb8Uta3QOKWqDNVwsd1Wa2+aI=
In-Reply-To <c1300623-8fa6-483c-819a-6627d20c444d@googlegroups.com>
Content-Language en-US
Xref csiph.com comp.lang.javascript:37756

Show key headers only | View raw


On 08.11.19 09:07, Jonas Thörnvall wrote:
> It would be handy to be able to have a list of arguments to compare
> with, of course one could store the values in an array use a loop to
> scroll thru.
> 
> But something like this would be easier to use.
> 
> if (track[editTrack].midiMess[i].data0 == ("224" || "112" || "128"))
> 
> 
> One can wonder why the most obvious solustions never implemented? I
> think it is weird, i just don't get it....

It is:

<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes>

> And then you end up with a string that is hardly readable, or the
> need to read in the values into an array. It is just weird, do you
> guys never favour readability of code?

Who is "you guys"? You have to ask the people maintaining ECMAScript.


-- 
Arno Welzel
https://arnowelzel.de

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Comparisson with a list arguments. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-11-08 00:07 -0800
  Re: Comparisson with a list arguments. Julio Di Egidio <julio@diegidio.name> - 2019-11-08 00:17 -0800
    Re: Comparisson with a list arguments. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-11-08 01:03 -0800
      Re: Comparisson with a list arguments. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-11-08 01:08 -0800
        Re: Comparisson with a list arguments. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-11-08 01:19 -0800
        Re: Comparisson with a list arguments. Arno Welzel <usenet@arnowelzel.de> - 2019-11-12 12:17 +0100
      Re: Comparisson with a list arguments. Julio Di Egidio <julio@diegidio.name> - 2019-11-08 01:13 -0800
        Re: Comparisson with a list arguments. Julio Di Egidio <julio@diegidio.name> - 2019-11-08 01:23 -0800
          Re: Comparisson with a list arguments. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-11-08 01:30 -0800
            Re: Comparisson with a list arguments. Julio Di Egidio <julio@diegidio.name> - 2019-11-08 02:19 -0800
              Re: Comparisson with a list arguments. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-11-08 02:33 -0800
                Re: Comparisson with a list arguments. Arno Welzel <usenet@arnowelzel.de> - 2019-11-12 15:25 +0100
                Re: Comparisson with a list arguments. Julio Di Egidio <julio@diegidio.name> - 2019-11-12 06:48 -0800
                Re: Comparisson with a list arguments. Arno Welzel <usenet@arnowelzel.de> - 2019-11-12 18:41 +0100
                Re: Comparisson with a list arguments. Julio Di Egidio <julio@diegidio.name> - 2019-11-12 09:50 -0800
                Re: Comparisson with a list arguments. Arno Welzel <usenet@arnowelzel.de> - 2019-11-12 18:55 +0100
            Re: Comparisson with a list arguments. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-11-08 11:33 +0000
              Re: Comparisson with a list arguments. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-11-08 06:53 -0800
                Re: Comparisson with a list arguments. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-11-08 19:31 +0000
                Re: Comparisson with a list arguments. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-11-08 11:38 -0800
                Re: Comparisson with a list arguments. Arno Welzel <usenet@arnowelzel.de> - 2019-11-12 15:26 +0100
            Re: Comparisson with a list arguments. Arno Welzel <usenet@arnowelzel.de> - 2019-11-12 15:23 +0100
        Re: Comparisson with a list arguments. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-11-11 01:31 -0800
      Re: Comparisson with a list arguments. Arno Welzel <usenet@arnowelzel.de> - 2019-11-12 12:16 +0100
  Re: Comparisson with a list arguments. luserdroog <luser.droog@gmail.com> - 2019-11-08 08:35 -0800
  Re: Comparisson with a list arguments. Arno Welzel <usenet@arnowelzel.de> - 2019-11-12 12:13 +0100
    Re: Comparisson with a list arguments. Julio Di Egidio <julio@diegidio.name> - 2019-11-12 06:39 -0800
      Re: Comparisson with a list arguments. Arno Welzel <usenet@arnowelzel.de> - 2019-11-12 18:52 +0100
        Re: Comparisson with a list arguments. Julio Di Egidio <julio@diegidio.name> - 2019-11-12 10:08 -0800
          Re: Comparisson with a list arguments. Arno Welzel <usenet@arnowelzel.de> - 2019-11-14 08:11 +0100

csiph-web