Skip to main content

Questions tagged [object]

An object is any entity that can be manipulated by commands in a programming language. An object can be a value, a variable, a function, or a complex data-structure. In object-oriented programming, an object refers to an instance of a class.

object
-3 votes
0 answers
23 views

Object is showing in log but it gives null when trying to expand. What could be the reason? [closed]

It's a react application and I'm simply trying to filter some objects from a large array of objects. Upload logging the result, the object is visible but has no value. I copied the object and pasted ...
Supercool's user avatar
  • 552
-3 votes
0 answers
19 views

How to loop over 2 objects and match ID's with different levels of objects [closed]

Once the user has selected more than 1 item, my code adds the item to a new object called MyBundle, i then need to loop over setBundles > products object and if it matches, return the object to ...
ElAitch96's user avatar
-1 votes
0 answers
27 views

Xcode Error on AppDelegate Class Declaration in Swift iOS Project [closed]

On line ten of this swift code I am getting a error I have asked ChatGpt and could not get a valid response that is why I reached out the the stack overflow community // // AppDelegate.swift // I am ...
Ishaanthecoder's user avatar
0 votes
1 answer
31 views

Deserializing JSON list into class objects not able to extract attributes

I'm struggling to deserialize my json-file into an array of objects of my class LeagueAcc. I wanna fill a list with objects of class LeagueAcc called: accounts = [] I have loaded my JSON successfully ...
Peter K's user avatar
  • 59
0 votes
0 answers
11 views

AsyncStorage React Native how can i store an object with multiple arrays inside?

i have been using asyncstore these days in react native and it works okay when storing tokens and simple objects. But i has a model like this (an object with arrays inside) "_id": { &...
Ismael Boff Lopez SkylakeFrost's user avatar
0 votes
0 answers
21 views

windows powershell causing compile error stating object does not exist [closed]

I created a simple hello world powershell script that when I attempt to run the script in the powershell i get this error cd : Cannot find path 'C:\Users\JohnZalubski\destkop' because it does not ...
John Z's user avatar
  • 1
-3 votes
0 answers
40 views

my function that returns an object of methods keeps returning undefined (react-native) [duplicate]

while trying to make a document editor like word (it's a very basic editor) I tried to use classes but what I wanted didn't work and so I created a big function that returns 2 variables and a method ...
No0bYebY's user avatar
-4 votes
0 answers
54 views

JS convert array to object of objects [closed]

I want to create a function in Javascript to adapt my output for my component. I have this input : const t1 = [ "children1", "children2-2", "children3-1", "...
Bouchet's user avatar
  • 15
0 votes
0 answers
16 views

Vuejs - Primevue - Filter the property of an array of object in a Datatable Column

I'm new to Primevue, Here is my exapmle: User object : User { username: 'test', email: '[email protected]', id: 1, role: { id: 1, name: 'Admin', description:...
Jovana's user avatar
  • 1
-6 votes
0 answers
62 views

Questions about object pointers and memory management [closed]

//test.h #ifndef TEST_H_ #define TEST_H_ #include<iostream> class ABC { private: char mode; public: ABC(char m); ABC(const ABC & a); ABC(){mode='0';}; virtual ~...
肥仔杰's user avatar
1 vote
1 answer
29 views

How to subscribe to object node with OPCUA using Python?

I want to subscribe to an Object node in Python. I want to output the values ​​of variable nodes of the object node in datachange_notification. Is it possible? If there is a way, please let me know. I ...
ms1234's user avatar
  • 11
0 votes
2 answers
48 views

Which method to use for Laravel Collection to find a Date between two DateTime

$period = new DatePeriod( new DateTime('2024-03-20 00:00:00'), new DateInterval('P1D'), new DateTime('2024-03-28 23:59:59') ); $suppliersInfo = OrderProduct::whereNotNull('brand') -...
Ferhat Nalbant's user avatar
0 votes
0 answers
78 views

Do we need to clear class to prevent memory leak?

In the following script, this class is used to store a lot of Geojsons object (for google maps api): class MapService { private layers: Map<string, google.maps.Data> = new Map() ...
Raphael Rlt's user avatar
-1 votes
2 answers
40 views

keep getting TypeError: array.push is not a function when trying to push an object into an existing array with objects

I'm learning about localStorage and I'm trying to build a basic shopping cart function. The process is: user clicks on "Add To Cart" button. If localStorage("shoppingCart") doesn'...
Lexiriam's user avatar
-3 votes
0 answers
91 views

Returning a string vs returning an array in java [duplicate]

Consider below two code snippets showing java functions Snip 1: public String greet() { return "hello"; } Snip 2: public String[] greetings() { return new String[]{"hello", ...
Neha's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
4344