We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found this answer on stackoverflow. So for How to create object from array in JavaScript case, you can add additional examples:
const apps = ["phone", "calculator", "clock"]; const object = Object.assign({}, apps);
or
const apps = ["phone", "calculator", "clock"]; const object = {...apps};
The text was updated successfully, but these errors were encountered:
Very good point, thanks! Would you mind sending a PR with the spread syntax to fix this usecase? And also please update the date: in the YAML header
Sorry, something went wrong.
Maybe it makes sense to leave the old version also? Or there is no possibility to leave two examples for one use case?
it's not possible as this is geared towards beginners with a link to MDN whenever possible to get more in depth information
Use case updated 👍 How to create object from array in JavaScript
No branches or pull requests
I found this answer on stackoverflow. So for How to create object from array in JavaScript case, you can add additional examples:
or
The text was updated successfully, but these errors were encountered: