7 JavaScript Array methods which you 104% must know! 🀨🀨🀨

πŸ‘‡ Follow Thread 🧡
1. array.map()

Using map(), we can iterate through all items in an array, taking actions on each one. The result of this operation is provided as a new array. Image
2. array.filter()

Using filter(), we can iterate through all items in an array and filter them depending on conditions inside a method. The result of this operation is provided as a new array. Image
3. array.find()

Using find(), we can iterate through all items in an array and find the first one which meets conditions inside a method. The result of this operation is provided as a single item. Image
4. array.some()

Using some(), we can iterate through all items in an array and check if at least one of them meets conditions inside a method. The result of this operation is provided as a boolean value. Image
5. array.every()

Using every(), we can iterate through all items in an array and check if all of them meet conditions inside a method. The result of this operation is provided as a boolean value. Image
6. array.sort()

Using sort(), we can sort items inside an array by conditions inside a method. The result of this operation is provided as the same array (NOT NEW ARRAY). Image
7. array.reduce()

Using reduce(), you can do a lot of useful array manipulations. This method performs a concrete accumulative operation on its items to calculate a result value. Image
That's all folks! πŸ”₯🧯

If you found this thread useful, please consider following @eugZolotarenko and retweeting the first tweet. πŸ“’

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Eugene πŸ’› Zolotarenko

Eugene πŸ’› Zolotarenko Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @eugZolotarenko

24 Nov
9 CSS Tricks for you to create 66.6% more elegant styles! 😍😍😍

πŸ‘‡ Follow Thread 🧡
1. Use inset property instead of using top, bottom, left, right. It is a really convenient shortcut! 😌 Image
2. Easily add commas for each item in the list with :not(:last-child)::after! 😊 Image
Read 13 tweets
23 Nov
⚑⚑⚑ 10 React and Next.js Starter kits for creating projects blazingly fast! ⚑⚑⚑

πŸ‘‡ Follow Thread 🧡
1. nextjs-subscription-payments

The all-in-one starter kit for high-performance SaaS applications.

github.com/vercel/nextjs-…
2. react-starter-kit

The web's most popular front-end template for building web applications with React, Relay, and GraphQL.

github.com/kriasoft/react…
Read 13 tweets
19 Nov
14 Best Practices for you to write 69% Higher Quality JavaScript code. πŸ€“ πŸ€“ πŸ€“

πŸ‘‡ Follow Thread 🧡
1. Reduce using global variables!

Global variables can be handy and easy to write, but don't overuse them. It can make your code hard to maintain and read.

However, consider using objects where you can group all your variables!
2. Use strict equality operators (===, !==) instead of non-strict (==, !=)

By using == or != operators, you don't check the types of values you compare. So, non-strict equality operators can easily lead to a bug in your code!
Read 17 tweets
18 Nov
Random Websites which just Blow your mind! 🀯🀯🀯

πŸ‘‡ Follow Thread 🧡
1. Is My Computer ON

This amazing website helps you understand if your computer is ON or OFF.

I use it on a daily basis just as a simple quick helper!

ismycomputeron.com
2. The world's worst website ever

When I don't like a website that I built, I often just visit this masterpiece to raise self-esteem.

theworldsworstwebsiteever.com
Read 9 tweets
17 Nov
11 JavaScript Tricks for you to write 57% more elegant code! 😈😈😈

πŸ‘‡ Follow Thread 🧡
1. Easily swap variables by using destructuring.
2. Transform number to string or string to number faster with +
Read 14 tweets
16 Nov
πŸ“’πŸ“’πŸ“’ Top Github Repositories for React Developers! πŸ“’πŸ“’πŸ“’

πŸ‘‡ Follow Thread 🧡
1. React Developer Roadmap

Roadmap to becoming a React developer!

The road map will guide you if you are confused about what to learn next, rather than encouraging you to pick what is hip and trendy.

github.com/adam-golab/rea…
2. 30 Seconds Of React

Short React code snippets for all your development needs

github.com/30-seconds/30-…
Read 8 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Thank you for your support!

Follow Us on Twitter!

:(