Javascript array every method

preview_player
Показать описание
Suppose you want to determine whether all elements in an array pass a certain test. In this case, JavaScript's every method can help. It iterates through the array and returns true if all elements pass the test, or false otherwise.
Рекомендации по теме