Skip to main content

All Questions

Tagged with
2 votes
2 answers
1k views

Filter object in array that is missing keys/properties - React

How I can filter the object in array that is missing some keys. Here is the explanation: For example, I have a array of objects: const array = [ { a: 1, b: 2, c: 3, d: 4 }, { b: 6,...
Lucas's user avatar
  • 93
1 vote
1 answer
568 views

Cannot access property of object in an array

Pretty straightforward question, not sure what I've got wrong syntactically here. const options: object[] = [ { value: 0, label: 'Ab' }, { value: 1, label: 'A' }, { value: 2, label: 'Bb' }...
Josh Silveous's user avatar
0 votes
0 answers
35 views

problem with array of object javascript ad property

I have this function that accepts an array of objects as input and transforms it into an array of strings, but when I do the console log the property are wrong, I can't understand why. as you can see ...
Salvatore Lorello's user avatar
0 votes
0 answers
184 views

Best way to update multiple properties of objects in an a JavaScript array

I have a function that takes in two parameters and returns an object with those updated parameters as properties const move = (pos: number, vel: number) => { vel += 1; pos += vel; return { ...
Nevermore's user avatar
  • 338
0 votes
1 answer
36 views

Protege; infer that if two apartments are located in the same address, then they are in the same building

I am pretty new at building ontologies in Protege. I am doing a simplified real estate ontology. I have an object property called "isLocatedIn" (actually my ontology is in spanish, so that ...
Jairo Genre Bert's user avatar
0 votes
1 answer
57 views

Accessing object property in Typescript using variable

I have following model interface Budget { budget_july?: number, budget_august?: number, budget_september?: number, budget_october?: number, budget_november?: number, ...
thethakuri's user avatar
0 votes
1 answer
27 views

How do i access a property on the objects in an array and compare it?

So, I have a array with multiple objects with multiple properties: let myArr = [{ id: 1, x: 120, y: 150, }, { id: 2, x: 170, y: 420, }, { id: 3, x: 160, y: 220, }, { id: 4, x: 140, y: 170, }]; Now I ...
W4IT's user avatar
  • 17
0 votes
1 answer
62 views

Text file to Text file String Conversion Using Powershell CSV Objects

I can change the column order of text in a file: 001 AALTON Alan 25 Every Street 002 BROWN James 101 Browns Road 003 CAMPBELL Colin 57 Camp Avenue to have the first names listed before surnames ...
Dave's user avatar
  • 833
0 votes
3 answers
223 views

renaming keys / values in objects dynamically

I'm trying to put the values from the 'allValues' array inside the existing keys in the memory object, but instead they are just being added to the object after the existing keys, and they're keys are ...
rozina's user avatar
  • 53
1 vote
2 answers
715 views

create object property by assign value in a for loop

In this excercise I create 3 function. score() to generate a random Number. generateStudents() to create a list Object. Object has format {student:'name',marks:{...}} as define in generateStudents(). ...
linhcheee's user avatar
0 votes
1 answer
361 views

How to Extract string from XML Property

Using PowerShell, I am attempting to extract the contents of Value="" which will either be Production or Training, from a XML file. Here is a snippit of the XML file: <ParameterGroup ...
Spagooch's user avatar
0 votes
2 answers
204 views

C# access to stack object property

How can I access the objects property in this situation? Araba araba = new Araba(); araba.Renk = "mavi"; araba.fiyat = 12345; // I created this class and it working normally ArrayTypedStack ...
MMChucker's user avatar
1 vote
0 answers
161 views

VBA: Creating a class property that is an array of dictionaries

In Microsoft Excel VBA I need to create a class that has two properties, "Name" and "Holdings". "Name" is just a string so the code for that is easy. But I need "...
Jason D.'s user avatar
0 votes
0 answers
133 views

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 paste the formatted appearance of copied ...
Greg's user avatar
  • 3,286

15 30 50 per page
1
3 4
5
6 7
80