Top "Object" questions

An object is any entity that can be manipulated by commands in a programming language.

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!" }; …

javascript object properties
Declaring array of objects

I have a variable which is an array and I want every element of the array to act as an …

javascript arrays object declare
How to define an empty object in PHP

with a new array I do this: $aVal = array(); $aVal[key1][var1] = "something"; $aVal[key1][var2] = "something else"; Is there …

php object
How to check null objects in jQuery

I'm using jQuery and I want to check the existence of an element in my page. I have written following …

javascript jquery dom object null
Compare two objects with .equals() and == operator

I constructed a class with one String field. Then I created two objects and I have to compare them using == …

java class object methods equals
Deleting Objects in JavaScript

I'm a bit confused with JavaScript's delete operator. Take the following piece of code: var obj = { helloText: "Hello World!" }; var …

javascript pointers object memory-management garbage-collection
How to remove item from a JavaScript object

How can I remove an item from a JavaScript object? Like this: var test = {'red':'#FF0000', 'blue':'#0000…

javascript object
How to perform .Max() on a property of all objects in a collection and return the object with maximum value

I have a list of objects that have two int properties. The list is the output of another linq query. …

c# linq object max
Java Serializable Object to Byte Array

Let's say I have a serializable class AppMessage. I would like to transmit it as byte[] over sockets to another …

java object serialization
Sort array of objects by object fields

How can I sort this array of objects by one of its fields, like name or count ? Array ( [0] => stdClass …

php arrays sorting object