JavaScript Array methods explained.

🧵
1. concat()

Returns a new array that is this array joined with other array(s) and/or value(s).
2. copyWithin()
Copies a sequence of array elements within the array.
3. every()
Returns true if every element in this array satisfies the testing function.
4. fill()
Fills all the elements of an array from a start index to an end index with a static value.
5. filter()
Returns a new array containing all elements of the calling array for which the provided filtering function returns true.
6. find()
Returns the found element in the array, if some element in the array satisfies the testing function, or undefined if not found.
7. findIndex()
Returns the found index in the array, if an element in the array satisfies the testing function, or -1 if not found
8. forEach()
Calls a function for each element in the array.
9. includes()
Determines whether the array contains a value, returning true or false as appropriate.
10. join()
Joins all elements of an array into a string.
11. map()
Returns a new array containing the results of calling a function on every element in this array.
12. push()
Adds one or more elements to the end of an array, and returns the new length of the array.
13. reverse()
Reverses the order of the elements of an array in place.
14. slice()
Extracts a section of the calling array and returns a new array.
15. some()
Returns true if at least one element in this array satisfies the provided testing function.
16. sort()
Sorts the elements of an array in place and returns the array.
17. splice()
Adds and/or removes elements from an array.
If you like this thread, maybe you'd love to bookmark it as a post { via @hashnode }:

denic.hashnode.dev/javascript-arr…
Here you can find this thread in a form of Cheat Sheet:

• • •

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

Keep Current with Marko ⚡ Denic

Marko ⚡ Denic 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 @denicmarko

4 Mar
5 useful websites for web developers.

🧵
1. Netlify

A powerful serverless platform with an intuitive git-based workflow. Automated deployments, shareable previews, and much more.

Link: netlify.com
2. Figma

Build better products as a team. Design, prototype, and gather feedback all in one place.

Link: figma.com
Read 7 tweets
22 Feb
Free Tailwind CSS resources.

🧵
1. Kometa UI Kit

It includes over 130 sections, built with Tailwind CSS, for your awesome projects.

All the sections are fully responsive and available in HTML, VueJS, and React.

Link: kitwind.io/products/kometa
2. Tailwind Toolbox

Free open-source Tailwind CSS starter templates and components to get you started quickly to creating websites in Tailwind CSS!

Link: tailwindtoolbox.com
Read 12 tweets
19 Feb
GitHub repositories to learn programming.

🧵
1. Web Development

Link: github.com/microsoft/Web-…
2. JavaScript

Link: github.com/Asabeneh/30-Da…
Read 13 tweets
3 Feb
Use Google like a pro.

🧵
1. Use quotes to force an exact-match search:

"what is javascript"
2. AND operator will return only results related to both terms:

html AND css
Read 10 tweets
6 Jan
You want to make your first Open-source contribution?

I have 3 super useful, beginner-friendly repositories.

I'm the maintainer, so I can guide you through the whole process.

🧵
"Web Development resources"

Join 22 other contributors by adding some free web development resources.

790 devs gave this repo a ⭐️. Thank you!

Link: github.com/MarkoDenic/web…
"HTML/CSS/JavaScript tips"

You know some handy tips? Join me in maintaining this repo.

Link: github.com/MarkoDenic/awe…
Read 4 tweets
28 Dec 20
Resources to crush the technical interview.

🧵
1. Coding Interview University

A complete computer science study plan to become a software engineer.

Link: github.com/jwasham/coding…
2. JavaScript Algorithms

Algorithms and data structures implemented in JavaScript with explanations and links to further readings

Link: github.com/trekhleb/javas…
Read 17 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 Become our Patreon

Thank you for your support!

Follow Us on Twitter!