Last active
January 4, 2017 06:42
-
-
Save eddiemoore/00f56137dfd705269670b1da68a721dd to your computer and use it in GitHub Desktop.
Revisions
-
eddiemoore revised this gist
Jan 4, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ const isFormValid = form => { const elements = form && form.elements if (!elements) return false return Array.from(elements).every(elem => elem.validity && elem.validity.valid) } -
eddiemoore revised this gist
Jan 4, 2017 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,5 @@ const isFormValid = form => { const elements = form && form.elements if (!elements) return false return Array.from(elements).every(item => item.validity && item.validity.valid) } -
eddiemoore revised this gist
Jan 4, 2017 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,5 @@ const isFormValid = form => { const elements = form && form.elements if (!elements) return false return Array.from(elements).every(item => item.validity && item.validity.valid) } -
eddiemoore revised this gist
Jan 4, 2017 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,8 +2,6 @@ const isFormValid = form => { const elements = form && form.elements if (!elements) return false return Array.from(elements) .every(item => item.validity && item.validity.valid) } -
eddiemoore revised this gist
Jan 4, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ const isFormValid = form => { const elements = form && form.elements if (!elements) return false const itemsLeft = Array.from(elements) .filter(item => item.validity && !item.validity.valid) -
eddiemoore revised this gist
Jan 4, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ const isFormValid = form => { const elements = form && form.elements if (!elements) return true const itemsLeft = Array.from(elements) .filter(item => item.validity && !item.validity.valid) -
eddiemoore revised this gist
Jan 4, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const isFormValid = form => { if (!elements) return false const itemsLeft = Array.from(elements) .filter(item => item.validity && !item.validity.valid) return itemsLeft.length === 0 } -
eddiemoore revised this gist
Jan 4, 2017 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,6 @@ const isFormValid = form => { if (!elements) return false const itemsLeft = Array.from(elements) .filter(item => !item.validity.valid) return itemsLeft.length === 0 -
eddiemoore renamed this gist
Jan 4, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
eddiemoore created this gist
Jan 4, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ const isFormValid = form => { const elements = form && form.elements if (!elements) return false const itemsLeft = Array.from(elements) .filter(item => item.required) .filter(item => !item.validity.valid) return itemsLeft.length === 0 }