Arnill Hasan
Arnill Hasan

@arnill_dev

9 Tweets 1 reads Oct 16, 2023
JS Array Methods You Should Know :
Part-2
Don't forget to comment if you want to get part 3.
[Bookmark For Later Use] ๐Ÿงต๐Ÿ‘‡
1. includes()
โ˜… The includes() method determines whether on array contains a specified elements.
2. forEach()
โ˜… The forEach() method calls a function once for each element in an array, in order.
3. findIndex()
โ˜… The findIndex() method returns the index of the first element in an array that pass a test.
(Provide as a function).
4. filter()
โ˜… The filter() method creates an array filled with all array elements that pass a test.
(Provide as a function).
5. fill()
โ˜… The fill() method fills the specified elements in an array with a static value. You can specify the position of where to start and end the filling. If not specified, all elements will be filled.
6. find()
โ˜… The find() method returns the value of the first element in an array that passes a test.
(Provide as a function).
If You found these thread helpful :
1. Follow Me @arnill_dev for more such content.
2. RT the tweet below to share with your audience.
Got Value Out Of This Thread.
Follow Me @arnill_dev

Loading suggestions...