Skip to content

Instantly share code, notes, and snippets.

@terakilobyte
Created May 23, 2015 17:50
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 terakilobyte/0279bdf87e471e62b360 to your computer and use it in GitHub Desktop.
Save terakilobyte/0279bdf87e471e62b360 to your computer and use it in GitHub Desktop.
Upper case an array or comma separated list
var UpperCase = function(args) {
if (!Array.isArray(args)) {
args = [].slice.call(arguments);
}
return args.map(function(elem) {
return elem.toUpperCase();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment