The 'filter' array method returns a new array consisting of only elements in the original array which pass the truth test conducted by the callback function. Using this method instead of creating a loop, conducting the test, and pushing passing values onto an empty array yourself can save you time and make your code cleaner.
Смотрите видео Using the JavaScript filter Array Method онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Covalence 08 Май 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 280 раз и оно понравилось 0 людям.