How to use Object.fromEntries to convert arrays to objects #shorts

preview_player
Показать описание

My VSCode Extensions:
- theme: material community high contrast
- fonts: Menlo, Monaco, 'Courier New', monospace
- errors: Error Lens
- extra git help: Git Lens
- tailwind css intellisense
- indent rainbow
- material icon theme
- prettier & eslint
- ES7+ React Snippets

------------

Рекомендации по теме
Комментарии
Автор

These shorts are so informative. Great work 👑

akshayable
Автор

I love these shorts. I’ve been making flashcards for the things you introduce. Keep it up!

austinb
Автор

Beautiful :-). Objects to arrays and Arrays to objects.

ajithmoni
Автор

Very useful!
A quick question, what happens if the array didn't contain another arrays and is unsuitable for converting ?

hashemwannous
Автор

Loved it! But why we would need to convert an object to an array of arrays? 🤔 To map or perform any other array method that isn't available on object? If so, what method?

thiagosilvaloopes
Автор

Is there any way to remove duplicate names from an array of objects which hai different id each, for eg
input -
[
{id:1, name:"name1"}, {id:2, name:"name1"}, {id:3, name:"name3"},
]

Output -
[
{id:1, name:"name1"}, {id:3, name:"name3"},
]

Manish___Choudhary
Автор

It's Perfect!!! Very little worthwhile content amongst the rest of the crap on tick-tock) It literally has to forge it out of this pile

evgeniy
Автор

add browser support to this kind of videos

code-island
Автор

You should check out Quokka! Makes tutorials like this a lot easier, less work to console log things and output is right next to code :)

arigibson
Автор

Good good, but - where's the Hashmap🦧

TheRealZitroX