return a boolean if elements in an array pass a test: more info in description #coding #javascript

preview_player
Показать описание
A step-by-step tutorial on how to use the .every() and .some() methods in JavaScript. The .every() method returns true if all elements in the array pass a test otherwise it returns false. The .some() method will return true when at least one element in the array passes a test otherwise it returns false.
Рекомендации по теме
Комментарии
Автор

Using Regex you can do the same thing with match

tardisman
visit shbcf.ru