StackOverflow Questions for Tag: object-literal

Cera
Cera

Reputation: 1909

Is it possible to use a variable's value as an object key inside an object literal expression?

Score: 3

Views: 155

Answers: 3

Read More
Tamás Pap
Tamás Pap

Reputation: 18303

Defining objects in Javascript

Score: 1

Views: 1388

Answers: 4

Read More
Daddy Warbox
Daddy Warbox

Reputation: 4608

What is this thing in JavaScript?

Score: 11

Views: 1658

Answers: 8

Read More
James Skidmore
James Skidmore

Reputation: 50328

How can I add a key/value pair to a JavaScript object?

Score: 1994

Views: 4192280

Answers: 17

Read More
Elliot B.
Elliot B.

Reputation: 17681

When a key appears repeatedly in an object literal, what is the value that finally ends up in the object?

Score: -1

Views: 48

Answers: 1

Read More
plc-dev
plc-dev

Reputation: 55

Can Typescript infer subtypes of parameters based on a dynamic variable accessing an object-literal with functions with a common parameter supertype?

Score: 1

Views: 20

Answers: 0

Read More
Clinton Green
Clinton Green

Reputation: 9977

Why does IE6/7 raise a syntax error for my object literal, but other browsers do not?

Score: 0

Views: 870

Answers: 1

Read More
Boris
Boris

Reputation: 166

What does it do when a method definition inside an object literal is prefixed by the `get` keyword?

Score: 1

Views: 231

Answers: 2

Read More
Jagadish G
Jagadish G

Reputation: 681

How can an expression within an object literal refer to another property of the same object?

Score: 0

Views: 72

Answers: 1

Read More
Peter Aron Zentai
Peter Aron Zentai

Reputation: 11750

Why do object literals sometimes need to be wrapped in parentheses when evaluated in an interactive console?

Score: 3

Views: 131

Answers: 2

Read More
lcharbon
lcharbon

Reputation: 3308

What do square brackets (`[ (…) ]`) do inside an object literal in the position of an object key?

Score: 178

Views: 67179

Answers: 1

Read More
daepark
daepark

Reputation: 256

Safely parsing a JSON string with unquoted keys

Score: 20

Views: 17280

Answers: 7

Read More
Priya
Priya

Reputation: 65

Object literal may only specify known properties, and 'entryComponents' does not exist in type 'NgModule'

Score: 1

Views: 2870

Answers: 1

Read More
John
John

Reputation: 1132

Adding Prototype to JavaScript Object Literal

Score: 62

Views: 36277

Answers: 6

Read More
Mark Renouf
Mark Renouf

Reputation: 31020

JavaScript property access: dot notation vs. brackets?

Score: 506

Views: 206372

Answers: 16

Read More
RobertPitt
RobertPitt

Reputation: 57268

dynamic keys for object literals in Javascript

Score: 123

Views: 61599

Answers: 8

Read More
Scott Deerwester
Scott Deerwester

Reputation: 3977

How does an object literal parameter declaration in a Typescript arrow function work?

Score: 0

Views: 704

Answers: 1

Read More
leeand00
leeand00

Reputation: 26402

How to determine if an object is an object literal in Javascript?

Score: 27

Views: 19023

Answers: 11

Read More
dafuqui
dafuqui

Reputation: 13

Can an object literal have a component in its properties to be rendered by ngComponentOutlet?

Score: 1

Views: 37

Answers: 1

Read More
Luca Druda
Luca Druda

Reputation: 21

Typescript lookup from object literal

Score: 2

Views: 2740

Answers: 1

Read More
PreviousPage 1Next