menu

JavaScript

A community to get help with JavaScript, find jobs, outsource and much more!

Channels
Team
Posts
Members
Info
Search

Object to array (retaining key)

Hello, I have an object similar to: What I would like is this: How could I achieve this with ES6/7, and without Lodash?

thumbsup
0
message-simple
5

Lexical Environment Issue

PROBLEM 1: ES5 way function works, but why ES6 arrow function s doesn't work? PROBLEM 2: How can I see result of queue[] by console.log(queue) it both for ES5 & ES6. I tried to bind this with it. Still confused how to solve.

thumbsup
0
message-simple
1

Is there a better way to structure this data?

https://repl.it/repls/SilkyTestyTwintext

thumbsup
0
message-simple
1

innerHTML vs childNodes[i].data

Hello! Is there any difference when trying to get the data from an element using innerHTML vs childNodes[i].data Thank you!

thumbsup
0
message-simple
1

How to add multiple styles in a object?

I have tried this, but it is not working.

thumbsup
0
message-simple
5

ES6 Generators: What are your use cases?

Curious what use cases other devs can see for using Generator functions? I'm currently writing a React component that uses it to cleanly step through a prop-passed array to display through a render prop. More info on generator functions:…

thumbsup
0
message-simple
4