The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Validate Data with the Every() Method

Validate Data with the Every() Method

6:04
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.
Watch this lesson now
Avatar
egghead.io

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.

Avatar
Oleg

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.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?