Skip to main content

All Questions

Tagged with
0 votes
1 answer
50 views

Changes not saving in Python and Excel

I'm working on a Python script to process Excel data containing directory codes and descriptions. Each directory has a hierarchical structure, and I need to append the descriptions corresponding to ...
Heskinammo's user avatar
0 votes
0 answers
31 views

Saving the points from my object individually as their correct type

This is my second post and i am into the last days of my internship and this is nearly my last problem and task to solve I have a graph, as agraphviz file, with a lot of items in it each item looks ...
Dominic's user avatar
-1 votes
1 answer
78 views

Javascript to return first and last name in a array of object getaccountfullname [closed]

const accounts = [ { id: "5f446f2ecfaf0310387c9603", picture: "https://api.adorable.io/avatars/75/[email protected]", age: 25, name: { first: "Esther", last: "...
Deji Akinbode's user avatar
0 votes
6 answers
115 views

How to create a new property called "name" in a every subset object with its parent object's key name as its value?

I know the title might be a bit confusing so I'll try to explain visually. I've been struggling for days, I've searched all over but this is a very specific task. I'm being provided with this API ...
Victor Olvera Cardoso's user avatar
0 votes
2 answers
401 views

How to map and get data from List<Object> in Flutter

I'm using CarouselSlider package and the items I used is from a hardcoded data. I'd like to get data from mapping it from a List<Object>. Here is my object: final List<Object> ...
JayP's user avatar
  • 43
0 votes
0 answers
9 views

JS - For an array of nested objects, each object having different keys, is it possible to copy each to a new object, copying only non-zero values?

I have an array of many nested objects. Each object has both properties with non-zero and with zero values. Original object 1 { pigs: 0, water buffalo: 1 } Original object 2 { horses:...
respectabiggle's user avatar
-2 votes
2 answers
62 views

compare 2 arrays of objects to find answers related to a single question

I'm building a quiz app and I have 2 arrays of objects. I want to obtain another array associating the answers to their question. How can I do this? const questions = [{ id: 1, text: question1 ...
Fabrizio Mastrone's user avatar
0 votes
1 answer
69 views

Mapping function: Nested object inside array not consecutively printed

Given a function below, i want to map _s from res to another function via return value from manipulateValidateReqRes function CODE WAS UPDATED BELOW why i cant return _s from map res.map function? it ...
Guinglain's user avatar
0 votes
1 answer
44 views

React UI is not updating

On every action I am pushing new array of object in the local storage. After that I am mapping over the localstorage data. Now the problem is the UI is not updating autometicaly on every new data ...
Rakibul Hassan's user avatar
0 votes
1 answer
505 views

Create objects from a list of IDs in a simple way

Is there a way to simplify the following with a stream or something? final List<Fruit> fruits = new ArrayList<>(fruitIds.size()); for (final long id : fruitIds) { final var fruit = new ...
MikelAlejoBR's user avatar
0 votes
1 answer
54 views

How can I loop through an array of object and get one property element out of the two objects listed inside the array?

I have my array of object bellow. const Articles = [ { id: 1, article1: 1, title1:'Trust', name1:'Pericles', date1:'Dec 2, 2022', text1: 'Lorem ...
Carl Pericles's user avatar
-1 votes
2 answers
118 views

Use a keys value to find a matching key in another object and replace with its value

I have a nested object and an array of objects (http://jsfiddle.net/9phkbgqe/): let data1 = { "fields": { "Main": { "Personal Details": { ...
Tom Rudge's user avatar
  • 3,238
-2 votes
1 answer
28 views

Mapping an object of key:value pairs where value is an object [duplicate]

Similar answers found Here Good day all. I have an object that looks like this: { ID1: { completedThis: true, completedThat: false, isArchived: true, }, ID2: { completedThis: true, ...
kinzito17's user avatar
  • 300
0 votes
0 answers
45 views

I need a function that maps an object inside my object

I've been trying many ways to map the products inside a menu object whom are also inside a restaurants array, but i can't find the exact way to map it. I'm already maping the image, location, name and ...
Arturo Suárez's user avatar
0 votes
1 answer
1k views

How to map object to table react typescript

I'm trying to make a table from array of objects which have items, arrays and objects. But mapping in typescript is so challenging for me. I tried it this way, but I get no data rendered, just empty ...
Daniil Galitskii's user avatar

15 30 50 per page
1
2 3 4 5
12