Skip to content

Instantly share code, notes, and snippets.

@carbide-public
Created July 14, 2019 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carbide-public/00b4c357e8a1c8b97acb2ac9987af4bb to your computer and use it in GitHub Desktop.
Save carbide-public/00b4c357e8a1c8b97acb2ac9987af4bb to your computer and use it in GitHub Desktop.
untitled
var jqueryForm = function(val) {
return val || "";
}
var objError = {
"message":"The given data was invalid.",
"errors": {
"name": ["The name field is required."],
"number": ["The number field is required."]
}
}
var formAsync = function (valArrs) {
for (var funcArr in funcArrs) {
console.log(funcArrs[funcArr])
}
}
var funcArrs = [jqueryForm("name"), jqueryForm("number")];
formAsync(funcArrs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment