MCPcopy Create free account
hub / github.com/RandomAPI/Randomuser.me-Node / uppercaseify

Function uppercaseify

api/1.2/api.js:408–416  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

406}
407
408function uppercaseify(val) {
409 if (Array.isArray(val)) {
410 return val.map(str => {
411 return str.toUpperCase();
412 });
413 } else {
414 return val.toUpperCase();
415 }
416}
417
418function include(inc, contents, field, value) {
419 if (inc.indexOf(field) !== -1) {

Callers 1

generateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected