Validate Data with the Every() Method

Share this video with your friends

Send Tweet

The every method returns true or false based on whether or not every item in the array passes the condition you provide in a callback function. In this lesson we look at some practical examples for simple validation, inferring state from data and for re-using the logic in our callbacks with array filters.

Oleg
Oleg
~ 7 years ago

Hello Shane and thank you for great videos! I have a question regarding your IDE, how your IDE replaced "=>" with real arrow and "===" with another beautiful symbol? Thanks in advance.