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


Groups > comp.lang.javascript > #36021

Re: getting number of prop values from array

From "R.Wieser" <address@not.available>
Newsgroups comp.lang.javascript
Subject Re: getting number of prop values from array
Date 2019-02-15 10:15 +0100
Organization Aioe.org NNTP Server
Message-ID <q45vv3$8vn$1@gioia.aioe.org> (permalink)
References <FfudnXxbaMVs5vvBnZ2dnUU7-f_NnZ2d@westnet.com.au>

Show all headers | View raw


Andrew,

> how can I make a list of the number of times a 'from' value that appears 
> more than once appears?

My first thought is to create an associative array (directory object ?), and 
put the values of the "from"s into it as keys, with an associated value of 
1.  When the key already exists just increment the associated value.

After having done that you can iterate that associative array for any value 
thats not 1.

Regards,
Rudy Wieser

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


Thread

getting number of prop values from array Andrew Poulos <ap_prog@hotmail.com> - 2019-02-15 19:44 +1100
  Re: getting number of prop values from array "R.Wieser" <address@not.available> - 2019-02-15 10:15 +0100
  Re: getting number of prop values from array Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-02-15 15:08 +0100
    Re: getting number of prop values from array Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-02-15 15:16 +0100
      Re: getting number of prop values from array Andrew Poulos <ap_prog@hotmail.com> - 2019-02-16 14:11 +1100
    Re: getting number of prop values from array John G Harris <niam@jghnorth.org.uk.invalid> - 2019-02-16 15:37 +0000
      Re: getting number of prop values from array Julio Di Egidio <julio@diegidio.name> - 2019-02-16 10:43 -0800
        Re: getting number of prop values from array Andrew Poulos <ap_prog@hotmail.com> - 2019-02-17 12:50 +1100
          Re: getting number of prop values from array Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-02-17 16:23 +0100
            Re: getting number of prop values from array Julio Di Egidio <julio@diegidio.name> - 2019-02-17 15:41 -0800
          Re: getting number of prop values from array Julio Di Egidio <julio@diegidio.name> - 2019-02-17 16:08 -0800
            Re: getting number of prop values from array Andrew Poulos <ap_prog@hotmail.com> - 2019-02-18 11:32 +1100
              Re: getting number of prop values from array Julio Di Egidio <julio@diegidio.name> - 2019-02-17 22:13 -0800
                Re: getting number of prop values from array Andrew Poulos <ap_prog@hotmail.com> - 2019-02-18 19:56 +1100
                Re: getting number of prop values from array Julio Di Egidio <julio@diegidio.name> - 2019-02-18 01:24 -0800
                Re: getting number of prop values from array Andrew Poulos <ap_prog@hotmail.com> - 2019-02-18 20:36 +1100
      Re: getting number of prop values from array "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-02-19 19:15 -0800
  Re: getting number of prop values from array Mickey Finn <mfinney@gmail.com> - 2019-02-17 13:42 -0300
  Re: getting number of prop values from array dr.j.r.stockton@gmail.com - 2019-02-26 07:43 -0800

csiph-web