Created
December 4, 2018 18:56
-
-
Save fininhors/da6c39e5cad8f054d700c0e5868188c4 to your computer and use it in GitHub Desktop.
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 characters
function validaCamposForm() { | |
/* Versão ES6 */ | |
var elements2 = document.querySelectorAll('.obrigatorio'); | |
var mapeados = Array.prototype.map.call(elements2, | |
element => ({ type: element.tagName, value: element.value, title: element.title }) | |
); | |
var filtrados = mapeados.filter(mapeado => mapeado.type == "INPUT")[0]; | |
let retorno = []; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment