Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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