Message from JavaScript discussions

December 2017

— I wonder how that works with JS closures

— 

It's a jank as fuck system imo, which is why I never got into .NET and have some uh.. *cough cough* opinions about it

— But if you're shooting for Windows-only apps, .NET is great for that

— *pretends Mono does not exist*

— Hi

— Do you guys have suggestions rpc framework for js/node ?

— Hello, I have a question, I want to access a specific part of my array to map the properties I want, however it tells me that

this.data[546] is undefined


How could I fix it?

notFound = this.data[546].map(d => ({nom_ent: d.nom_ent, museo_nombre: d.museo_nombre, nom_mun: d.nom_mun }) );

Message permanent page

— You should apply map only on an array not directly on element of array.

— From mozilla :
The map() method creates a new array with the results of calling a provided function on every element in the calling array.

Message permanent page

— Check if this.data[546] exists first

— Yeah, the thing is, I'm cycling all the elements of my array of objects and I want to store specific values into my array if a certain condition happens.

Message permanent page

— But now I'm thinking I could've just pushed them into an array of objects


var arr=[{}];


I think it could work.

Message permanent page