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,...
For further actions, you may consider blocking this person and/or reporting abuse
The code for every has the wrong array I think. Otherwise, a great way of explaining things!
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!
It had the wrong code initially but the author was diligent enough to change it afterwards.
Alright super!!
Thanks for pointing out.
Fredy,
Nice article - love the animation but I think it could do with two examples for the
every
andsome
methods to demonstrate complete and early exit.I like teach with animation!
Nice way of explaining!
Very engaging. I love the gifs
Cool
How did you produce those animations ?
Such a great teaching tool
Very Helpful!
excellent content! love it!
Thanks for creating this. Nice content.
Usefull! Thanks for sharing
Pretty neat. The gif for .fill is not quite right.
Felicidades, increíble explicación!!!
very usefull, Thanks