Created
July 2, 2016 03:03
-
-
Save ijunaid8989/a1a068f2a426bcf5fdd2d0ba701355a8 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 sanitizeErrors(errs) { | |
var msg = errs.message; | |
var result = {}; | |
for (var key in msg) { | |
result[key] = key.replace('_', ' ') + ' ' + msg[key][0]; | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment