python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
how to handle Destructuring assignment if the property is not available?
i have a function to format the date object (especially zip code (converting from 12345-678 to 12345)), because i need to compare 2 address objects(for ex: physical address and mailing address ).
for...
sravan ganji
Votes: 0
Answers: 0
Can I configure how VSCode autocompletes JSDoc?
VSCode lets me autocomplete a JSDoc when I start typing /** which is nice, and it even fills in some params.
But a) it defaults all the params to * and b) it doesn't help when I'm destructuring an obj...
AncientSwordRage
Votes: 0
Answers: 0
Object argument becomes nested after being passed to constructor in React
I'm having trouble understanding a very weird bug while doing Part 2 on Full Stack Open.
In few words: passing an object to the component turns the object into a nested object.
Namely:
entries.map(ent...
Besnik Nuro
Votes: 0
Answers: 1
Destructured objects and arrow functions
I'm taking an online course to learn react. A student posted a solution to a problem that I think is really elegant and I'd like to understand better. The code iterates through an array of items to cr...
Monjoie11
Votes: 0
Answers: 1