Skip to main content

All Questions

Tagged with
0 votes
1 answer
50 views

How to extract information from nested arrays with multiple objects?? (AdminReport.Activities.list)

Could anyone point me in the correct direction? I searched plenty... I had no luck with mapping... or "find" nor extracting the data I need. My code: function checkMeetCode(meetCode, index, ...
Joaquin Pagliettini's user avatar
0 votes
4 answers
45 views

Nesting properties inside property-array in JavaScript [duplicate]

I'm trying to populate an array 'arr' inside the object 'obj' with a property I defined inside this 'obj', in this case, the property 'x'; Basically the array would have x values, but instead, when ...
Lucas Werner Kuipers's user avatar
0 votes
1 answer
33 views

How to get the right property of a nested object property in a for...in?

Given the following snippet: let PARENT = { CHILD_1: { no: '1', page: 3, toString: function(){ return this.no; } }, CHILD_2: { no: '2', page: 4, toString: ...
Gerold Broser's user avatar
0 votes
1 answer
24 views

Is it possible to find an index of a randomly-chosen JavaScript Object property (if said property is an array/object)? [duplicate]

var geartable = { shittyboots: { name: "Shitty Boots", cost: "500" }, shittyarmor: { name: "Shitty Armor", cost: "1000" }, shittyhelmet: { name: "Shitty Helmet",...
Jacob Davis's user avatar
2 votes
3 answers
357 views

Creating deep-nested objects in Javascript

When loading JSON from a server, I need to create objects. The objects do not always exist beforehand.Therefore I have to check that each level exists before adding a new level. Is there a better way ...
Tal Yaron's user avatar
  • 385
8 votes
2 answers
17k views

How To Loop Through A Nested Object [duplicate]

Hi there i have an nested object that looks like this var dogTypes = { GermanShepard {color: "black and white"}, Beagle {color: "brown and white"}, cheuwahwah {color: "green and white"}, ...
Sammy's user avatar
  • 85
0 votes
1 answer
39 views

value of property in nested object JS

claimReservation function. It should: If the reservation exists and is unclaimed, welcome the user (use alert). If the reservation exists and is already claimed, inform the user about the situation (...
474747's user avatar
  • 1
2 votes
4 answers
6k views

Checking existence of nested property in an object javascript

I have already reviewed some of the answers to similar questions, however, I want to ask my question differently. Let's say we have a string like "level1.level2.level3. ..." that indicates a ...
Pedram's user avatar
  • 2,561
1 vote
0 answers
30 views

Delete nested property from javascript object by path [duplicate]

I need help with removing a property from a Javascript object. It looks like this: devices = { device1 : { properties : { name : { value : "ABC" }, ...
Dommar92's user avatar
  • 325
0 votes
1 answer
1k views

C# nested object properties

Hello I am doing some tests in C# with nesting properties which return objects, but I am getting an object reference exception. I want to be able to access the arrays in nested Properties, but in ...
user5183820's user avatar
0 votes
1 answer
29 views

javascript create nested object variable for saving from dotted representation

I need to assign a value to nested object variable . The nested object variable will be given as a.b.c and the object will be given as result I need to create a variable result[a][b][c] so ...
abbas's user avatar
  • 37
0 votes
1 answer
141 views

Changing multiple values of properties of the same name in a deeply nested Javascript object depending on their order

I've really been struggling with this javascript problem. I have a series of objects that relate to data being passed into graphs. I have nested objects in an array that look something like this: ...
ck-bamf's user avatar
  • 27
0 votes
2 answers
1k views

JavaScript - Composite objects with object properties

I want to create a composite object (eg device) which would have other objects as a properties (eg position). Is this possible to achieve in JavaScript by using constructors? var pos = new position(...
lephleg's user avatar
  • 1,764
1 vote
2 answers
68 views

I cannot get object properties as function

Halo guys.. I'm quite new here in this site, so any help would be appreciated. please let me know if my question already exists in another topic. i have the following problem.. i create an object ...
Galih Dono Prabowo's user avatar
0 votes
1 answer
686 views

Order list of objects by property of nested object with NHibernate 1

I have an object with a nested object and want to order a list of objects by a property of the nested object. As I have to, I use an old NHibernate version (1.0 or something). public class MyObject { ...
AGuyCalledGerald's user avatar

15 30 50 per page