Hello, World!
Here is a challenge, tell me the no of ways in which we can loop over the given arrays below?
//Array one
let letters = ['j','a','v','a','s','c','r','i','p','t']
//Array Two
let javaScipt = [
{
name:'Angular',
by:'Google'
},
{
name:'React',
by:'Facebook'
},
{
name:'Vue',
by:'Evan'
}
]
Top comments (6)
Alright let's give this a shot.
Any more for anymore anyone?
.filter
"You get the point, mostly all of the array methods loop under the hood"
That covers filter and find
One of the resourse I found in #devcommunity by @florinpop17
dev.to/florinpop17/24-javascript-a...
Unfortunately this sort of artical goes out of date quite quickly. Missing
Array.prototype.flatMap()
Always best to Google.
Fact (PERIOD).