Created
July 25, 2016 21:06
-
-
Save kyleparisi/b560e58b49a8ec68a3b3dd18ea73db86 to your computer and use it in GitHub Desktop.
All values are true in js object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If all inputs are valid return true | |
let allValid = Object.keys(state).reduce((prev, curr) => (prev && state[curr].valid) ? true : false, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment