This Gist was automatically created by Carbide, a free online programming environment.
Created
July 14, 2019 06:19
-
-
Save carbide-public/00b4c357e8a1c8b97acb2ac9987af4bb to your computer and use it in GitHub Desktop.
untitled
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
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