Posts

Showing posts from December 19, 2018

JQuery - show only one if the same id and also add it on weeks [duplicate]

Image
up vote 2 down vote favorite 1 This question already has an answer here: Most efficient method to groupby on a array of objects 33 answers I have this sample data: [{"id":"2", "weeks":2}, {"id":"2", "weeks":4}, {"id":3, "weeks":7}] I wanted that I will only show one if id is redundant but add all of the weeks that the id's had My Attempt: var data = [{"id":"2", "weeks":2}, {"id":"2", "weeks":4}, {"id":3, "weeks":7}]; var weeks = 0; for (var i=0; i<data.length; i++){ weeks += data[i].weeks; } Desired output [{"id":"2", "w

Tatjana Hüfner

Image
Tatjana Hüfner La Hüfner in conferenza stampa ad Altenberg nel 2015 Nazionalità   Germania Altezza 178 cm Peso 76 kg Slittino Specialità Singolo Squadra WSC Erzgebirge Oberwiesenthal Palmarès Olimpiadi 1 1 1 Mondiali 8 1 2 Europei 2 5 1 Mondiali juniores 2 1 1 Campionati tedeschi 5 7 3 Coppa del Mondo - Singolo 5 trofei Per maggiori dettagli vedi qui Statistiche aggiornate al 24 novembre 2018 Modifica dati su Wikidata  · Manuale Tatjana Hüfner (Neuruppin, 30 aprile 1983) è una slittinista tedesca, campionessa olimpica a Vancouver 2010, argento a Soči 2014 e bronzo a Torino 2006 nonché vincitrice di cinque titoli mondiali (record) e altrettante Coppe del Mondo nell'individuale femminile. Ha altresì conquistato 38 vittorie di tappa nel singolo, che la pongono al secondo posto di sempre dietro alla connazionale Natalie Geisenberger. Indice