Skip to main content

All Questions

Tagged with
0 votes
4 answers
76 views

How to iterate through nested json objects with unique names in Apps Script

Given a json file with nested objects (not arrays) like: { "data": { "UniqueName1": { "name": "Bob", "title": &...
user645379's user avatar
-1 votes
1 answer
55 views

Javascript : Find node value through recursive iteration

I have the following structure : var content = { "id": "RkktMTA1OC0wNTE3QElNQi82NTAwNC9YLzAwSDc", "name": "FI-1058-0517", "category": &...
BlackPage's user avatar
  • 107
1 vote
2 answers
73 views

sum up property values when id matches and return the result using javascript

I am trying to achieve a pretty complex iteration but havent been successful so far using reduce. Here is a small example of it The input is as follows let input = { "data": [ { ...
Aren Trot's user avatar
  • 479
0 votes
3 answers
76 views

group array of object with common ids and concatenate their other properties using javascript

I am trying to achieve a pretty complex iteration but havent been successful so far using reduce. Here is a small example of it The input is as follows let input = { "data": [ { ...
Aren Trot's user avatar
  • 479
0 votes
0 answers
21 views

undefined Error getting data from object in javascript while using dot notation [duplicate]

I want to iterate through an array with object elements such as; var location = [ { continent: 'Africa', country: 'Nigeria', population: 200 }, { continent: 'Europe', country: 'Germany', ...
sammiie's user avatar
  • 41
2 votes
2 answers
45 views

how to correctly get data from object

i have array with objects like this: { tab: "Quality Assurance", value: "qa", titles: [ "Web App Interfaces3", "Backend Application ...
dyamorphxx's user avatar
-1 votes
3 answers
936 views

Iterate through object list by attribute

I do not need to iterate through all attributes in an object. Instead, I need to iterate through a list of objects, but with a specific attribute. I have a list, called athleteList, of athlete objects,...
IfFishThenSticker's user avatar
1 vote
1 answer
723 views

Map is not working on Object.keys - JavaScript [duplicate]

I have a simple code where I have a map in JS. I'm iterating over the map keys using Object.keys and then using a map over it to return a new Map. But it is not working and console shows no output. ...
Amax1's user avatar
  • 27
1 vote
1 answer
61 views

Count numbers of Objects and Array contained into a main Object

I have an Object that contains various values, Objects, and Arrays, as shown in the snippet. I am looking for a function that can count the total number of Objects and Arrays within this Object. ...
tatactic's user avatar
  • 1,381
-1 votes
1 answer
30 views

Add to object with every iteration without replacing

I have an object outside of the function that I want to populate with every iteration and call that object after the iteration is done but I am only able to see the last element in my object. How do I ...
nb_nb_nb's user avatar
  • 1,381
2 votes
0 answers
24 views

Keys-Values Iteration in TypeScript Type [duplicate]

So I was making a cache manager with global cache object and I have its global object that will have "cached items", where the key of the property is "cached item name" and value ...
shadowplay1's user avatar
0 votes
1 answer
89 views

Passing a string as a property to use the map function

I have something like this { "title": "JSON", "content": [ { "item": "23", "url":"ug.coml" ...
Jacklyn N's user avatar
0 votes
1 answer
74 views

What's the problem with looping through an object properties and then through each of its properties as well in this case?

I have an object with some arrays inside. Arrays on the other hand are populated with objects. The idea is to loop through the object and through the array on each iteration. Object: {trendingMovies: ...
rigan's user avatar
  • 83
-1 votes
3 answers
65 views

Create an object from a json value

I have a json file (estate.json) that looks like this: { "type": "FeatureCollection", "features": [ { "type": "Feature", "id&...
MathiasF78's user avatar
1 vote
2 answers
58 views

How can I get values of array out of object in array?

I'm building a version of battleship where the ships are worms and the player is the bird...if that explains the naming of things. I'm having a moment. I need to iterate through the values of a ...
Kat's user avatar
  • 17

15 30 50 per page
1
2 3 4 5
16
X