Array Methods in JavaScript | 17 Useful Methods

preview_player
Показать описание
Learn 17 useful array methods in JavaScript:
toString()
join()
concat()
splice()
slice()
indexOf()
lastIndexOf()
forEach()
map()
filter()
reduce()
some()
every()
flat()
find()
findIndex()
sort()

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

To be honest, I think this is the most underrated channel, your explanations are so clear for novice programmers like me when we get stuck on some concepts. I cant thank you enough!

parvathisachin
Автор

Damn, that was a great session.
Thanks man.

ElonTusk..
Автор

Setup: 0:00
toString: 1:45
Join: 2:52
Concat: 3:53
Splice: 5:44
Slice: 9:25
IndexOf: 11:45
LastIndexOf: 12:48
Flat: 13:15

HIGHER ORDER ARRAY METHODS 15:48
ForEach: 16:09
Map: 19:48
Filter: 21:42
Reduce: 24:04
Some: 32:04
Every: 34:27
Find: 36:40
FindIndex: 38:10
Sort: 38:42

clevermissfox
Автор

I am so lucky to find this channel. Thanks for your efforts

hendmohammed-co
Автор

Just to quickly summarise every 17 array methods:
toString(): Converts an array to a string with elements separated by commas.
join(): Combines array elements into a string, using a specified separator.
concat(): Combines two or more arrays into one new array.
splice(): Adds, removes, or replaces elements in an array at a specified position.
slice(): Copies a portion of an array into a new array.
indexOf(): Finds the first occurrence of an element and returns its index, or -1 if not found.
lastIndexOf(): Finds the last occurrence of an element and returns its index, or -1 if not found.
forEach(): Runs a function on each array element.
map(): Creates a new array with the results of running a function on every element.
filter(): Creates a new array with only the elements that pass a test.
reduce(): Reduces the array to a single value by running a function on each element.
some(): Checks if at least one element passes a test.
every(): Checks if all elements pass a test.
flat(): Flattens nested arrays into a single array up to a specified depth.
find(): Returns the first element that passes a test.
findIndex(): Returns the index of the first element that passes a test.
sort(): Sorts the elements of an array in place and returns the sorted array.

Epithermal
Автор

Even though I have been over all of these things several times, and use some of them all the time, I still like watching videos like this to keep things fresh in mind because I am quite forgetful with programming. Use it or lose it type of thing with me.

davidallred
Автор

Thank you! This was the clearest explanation so far. Please, post more videos about JS topics.

infoessay
Автор

This was a great video, not overwhelming for newcomers. Thank you for you effort :)

FurkanKARADENIZ-ttzf
Автор

This is awesome! Your explanations are so clear and easy to follow, thank you so much😊.

struth
Автор

Bro this video >>>> anything on Udemy

SD-wjbv
Автор

Had a terrible time understanding the methods for arrays and this has been the most helpful yet! Not only did you go over each method but exactly what they did with very clear examples. Thanks so much for making the video!

DullBlaze
Автор

Thanx a lot - —I just built a nice cheat sheet ——:)

lucam.
Автор

cool video but so annoying when the keyboard and mouse are heard louder than the voice, yes I know programmers like this mechanical keyboard but in the video is....

nicolaed
Автор

Miracles! Succinct definitions instead of mind boggling confusion. A rare thing.

samcarpenter
Автор

I really thank you so much for your explanation. I understood every bit of it and it is very clear to me. Thank you SIR.

nakhan
Автор

I still do not understand the reduce method after 2 and half years been working with JS

fariadworld
Автор

Good explanation and I appreciate your effort. Please share a video series about data structures and algorithms with javascript. 🥰🥰🥰

GayanRamyaKumaragtk
Автор

Wonderful, easy to adapt and share with others, the one video holds everything regarding Array Methods.

CapitalM-qn
Автор

This is awesome sir... you're underrated but we'll support you to be lionized ♥️♥️♥️♥️

hosseinpanahy
Автор

Thanks, really great walkthrough.
I've always been a bit unsure about reduce() but if I understood correctly its when you want to loop through the array and have each of the values contribute to something bigger to represent the array, the video helped a lot.
I never realised the some() and every() function existed, I'll definitely make use of it to ditch Boolean flags and For Loops!

GaneshH