Top "Object" questions

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

How do I access properties of a javascript object if I don't know the names?

Say you have a javascript object like this: var data = { foo: 'bar', baz: 'quux' }; You can access the properties by …

javascript object properties iteration introspection
Perform .join on value in array of objects

If I have an array of strings, I can use the .join() method to get a single string, with each …

javascript arrays object
Difference between 'cls' and 'self' in Python classes?

Why is cls sometimes used instead of self as an argument in Python classes? For example: class Person: def __init__(…

python class object terminology self
How do you programmatically set an attribute?

Suppose I have a python object x and a string s, how do I set the attribute s on x? …

python attributes object
C#: Printing all properties of an object

Is there a method built in to .NET that can write all the properties and such of an object to …

c# generics console object
Clone Object without reference javascript

I have a big object with much data. And i want to clone this in other variable. When i set …

javascript oop object
Is there a “not in” operator in JavaScript for checking object properties?

Is there any sort of "not in" operator in JavaScript to check if a property does not exist in an …

javascript object properties operators
How can I check if a value is a json object?

My server side code returns a value which is a json object on success and a string 'false' on failure. …

jquery json object
How to destroy a JavaScript object?

Recently, I came across one of my application which consumes too much memory and increasing by 10 MB/sec. So, I …

javascript object destroy
What is the difference between ( for... in ) and ( for... of ) statements in JavaScript?

I know what is for... in loop (it iterates over key), but heard the first time about for... of (it …

javascript arrays object