Arrays are everywhere and we have to use them all the time.
I created this article specially for you, so you have a quick reference of the most common things you usually do with Arrays on a daily basis 😊
Table Of Contents 📋
- Find in array 🔍
- Filter an array 🕵️
- Loop arrays 🔁
- Sort an array of objects ⬆️ ⬇️
- Add an element to an array 🗳️
- Remove an element from an array 🗑️
- Create an array from an existing array (Map) 📦
- Accumulate array values (Reduce) 🐝
- Combine arrays (Concat) 🍔
Find in array 🔍
Filter an array 🕵️
Loop arrays 🔁
Sort an array of objects ⬆️ ⬇️
Add an element to an array 🗳️
Remove an element from an array 🗑️
Create an array from an existing array (Map) 📦
Accumulate array values (Reduce) 🐝
Combine arrays (Concat) 🍔
Hope you enjoyed this reading 🥳. Feel free to save this article into your bookmarks 🔖 so you have it available at your fingertips.
In Sort array of objects
usersSortedByScoreDesc
still returns asc i believe?But great reference all together!