DEV Community

Cover image for I'll teach you 7 Array methods. (with animations!)

I'll teach you 7 Array methods. (with animations!)

Fredy Sandoval on September 20, 2022

map Creates a new array populated with the results of a provided function on every element. [1, 2, 3].map( n => n * 2 ); // [2, 4,...
Collapse
 
matijanovosel profile image
Matija Novosel • Edited

The code for every has the wrong array I think. Otherwise, a great way of explaining things!

Image description

Collapse
 
davido242 profile image
Monday David S.

I don't really get the point here pls!
I was thinking this is another version of the example for the every method and atleast the result should be false since not every item is equal to 2.

Got confused with the result of this.answer though!

Collapse
 
matijanovosel profile image
Matija Novosel

It had the wrong code initially but the author was diligent enough to change it afterwards.

Thread Thread
 
davido242 profile image
Monday David S.

Alright super!!

Collapse
 
fredysandoval profile image
Fredy Sandoval

Thanks for pointing out.

Collapse
 
tracygjg profile image
Tracy Gilmore

Fredy,
Nice article - love the animation but I think it could do with two examples for the every and some methods to demonstrate complete and early exit.

Collapse
 
jacksonkasi profile image
Jackson Kasi

I like teach with animation!

Collapse
 
svdoever profile image
Serge van den Oever

Nice way of explaining!

Collapse
 
themfon profile image
Mfon.

Very engaging. I love the gifs

Collapse
 
chiki1601 profile image
Miss Pooja Anilkumar Patel

Cool

Collapse
 
jmfayard profile image
Jean-Michel 🕵🏻‍♂️ Fayard

How did you produce those animations ?
Such a great teaching tool

Collapse
 
codewithtee profile image
Tabassum Khanum

Very Helpful!

Collapse
 
hasobi profile image
Hasobi

excellent content! love it!

Collapse
 
codewithrabeeh profile image
Rabeeh Ebrahim

Thanks for creating this. Nice content.

Collapse
 
said_mounaim profile image
Said Mounaim

Usefull! Thanks for sharing

Collapse
 
simmbiote profile image
JBS

Pretty neat. The gif for .fill is not quite right.

Collapse
 
acarrasco profile image
Alfonso Carrasco

Felicidades, increíble explicación!!!

Collapse
 
ruleenugroho profile image
ruleenugroho

very usefull, Thanks