Category "object"

Overwrite Object Property with Another Object

I am working in VBA, and I need to set the .Interior property of a Range object, to the value of its own .DisplayFormat.Interior. More generally, I want to pas

terraform combine 2 objects with 2 attributes for aws instance_ids

Following hashicorp doc to leverage for_each to provision multiple instance using local var map. I am unable to get the instance_ids into a single lists for out

Typescript, merge object types?

Is it possible to merge the props of two generic object types? I have a function similar to this: function foo<A extends object, B extends object>(a: A,

Why am I getting a nil value from a Ruby object's member, when it is not nil? [closed]

I want to get the value of a field (ScenarioID) in a Ruby ActivityChart object (chart). Displaying the whole chart shows the value I want: 16

ReactJS - Convert to Array Mapping

How can I convert this link to a array mapping, I already tried making a array object with name, path, icons, and label properties. But when I do that the cart

How can I write query for getting a json key and value from json api datasource in Grafana

I have a problem in my Grafana localhost that is the API's JSON value alone getting but not the key, I'm getting so is there a query to write like a key with va

Creating endless copies of objects

I have a macro which theoretically works perfectly but I think it is creating unnecessary processing and calculation requirements which then crashes the file. I

Pushing value to array that is the value of an object

I have the following structure: let mappings = { "1002": ["1000", "1003"], "2000": ["2001", "2002"] } and I want to add this piece of data const issueT

How to optimise a condition which checks for each object of an array of objects whether specific properties are not undefined?

I want code optimisation for an if-statement because I otherwise have to add more key-value pairs into this condition with &&. I have an array of object

How to populate an object inside of an object and call it whenever in C#

So I have an object (Location) This Location Object contains what is a Location I have also added another object that is a Venue on the last line. namespace En

DBF/FoxPro Connection with VBA

i want to make a connection with a DBF file through VBA, i have installed all the drivers but i get this error message every time i try to run it Object variab

Dynamically access object property using variable

I'm trying to access a property of an object using a dynamic name. Is this possible? const something = { bar: "Foobar!" }; const foo = 'bar'; something.foo; //

trying to figure these project errors

I'm stuck in my project, tried about anything, but can't solve this, getting errors, and testers are not working as well. airport class is the one making troubl

How to call tostring method on all objects

I have a school project where I have to make every tostring method appear on every object. Does anyone know how to do it? enter image description here enter ima

array of objects with 6 keys, how to group them into fewer keys?

sorry if the title is a bit missleading, I new to js so idk how to explain what I want to do properly so I'm gonna show my code and what I expect instead. so I

Weird behavior of object references, "ghost" object

I was messing around with some sample code to check if I understood how objects behave when referring to one another when I stumbled upon this situation: public

Create an array of object properties for each item that has the same key

I'm merging two objects together to create a filter object. However I want to group the merged objects property values where the keys are the same. So... [{cate

Creating an array from each key in an array of objects

I have an array that looks similar to this: The array of objects is much larger and each object has more properties, this is the structure though. let arr = [

Dart: Object is giving output only once even when called multiple times

Hi I am trying to print value of 'a' property of x object but I only get output once. void main() { var x = Test("Boy"); x; x; x; x; x; x; } clas

sort objects by key value 0 by number size

how i can sort this object by user_id ? { key_1: { user_id: 3 }, key_2: { user_id: 1 }, key_3: { user_id: 2 } } I need this: { key_2: { user_id: 1 }, key_