ECMA is a standards organisation
Questions tagged [ecma]
214 questions
-1
votes
2 answers
Can anyone point me to the standards in ecma-262 that defines using parentheses for returns?
// Create a component named MessageComponent
var MessageComponent = React.createClass({
render: function() {
return (
{this.props.message}
);
}
});
NOTE Why do we need the parentheses around the return statement (line
…
geoyws
- 3,326
- 3
- 35
- 47
-2
votes
1 answer
What is the difference between a .NET framework DLL and a .NET core DLL? Why do they need seperate runtimes?
When inspecting a .NET Core DLL and .NET Framework DLL using ildasm, they both seem very similar. The only difference I could see is the references (the .NET Framework DLL references mscorlib).
This makes sense, since both have to conform to…

Nick
- 920
- 1
- 7
- 21
-2
votes
2 answers
JavaScript/React - Update a value in array with particular key name from a array of arrays
In the below array of arrays I need to update the id value for a particular name.
objArray = [{ name: John, id: 12}, { name: Jake, id: 45}, { name: Jacob, id: 78}];
Ex: If user enters a name and id in text boxes and clicks submit I want to update…

Nitheesh
- 47
- 8
-3
votes
2 answers
Javascript/Node - Destructuring array like oject
It seems duplicated question, but I could not find ideal way to solve it.
(I searched on google about the keyword like 'convert array of object'...
Yes! I'm stupid...)
My current data is like this.
[ { name: 'apple', value: 'red' },
{ name:…

Maker
- 123
- 1
- 9