Whether you want to search for an item using strict comparison or a predicate, return a list of matching items, the first item, the index or just a boolean if the item exists, these 8 methods have got you covered!
In this video, I'll cover:
0:22 - predicates
1:14 - filter
1:38 - find
1:50 - findIndex
2:06 - indexOf
2:25 - lastIndexOf
2:50 - includes
3:02 - every
3:20 - some
3:30 - Extra Credit on the predicate
4:07 - Dumpling
I also wrote an article on this topic that you can read here:
https://blog.bitsrc.io/8-methods-to-s...
Смотрите видео 8 Methods to Find, Search and Filter JavaScript Arrays онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Joel Codes 02 Сентябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,930 раз и оно понравилось 90 людям.