Cómo convertir la matriz en mayúsculas en JavaScript
var a = ['this','is','test'];
a.map(f=>{ return f.toUpperCase(); });
Defiant Dogfish
var a = ['this','is','test'];
a.map(f=>{ return f.toUpperCase(); });
const names = ['Ali', 'Atta', 'Alex', 'John'];
const uppercased = names.map(name => name.toUpperCase());
console.log(uppercased);
// ['ALI', 'ATTA', 'ALEX', 'JOHN']
var string = "A string";
var upperCase = string.toUpperCase();
console.log(upperCase); // -> A STRING
var lowerCase = string.toLowerCase();
console.log(lowerCase); // -> a string
var fruits = ["Banana", "Orange", "Apple", "Mango"];
undefined
string = fruits.join(' ').toUpperCase();
// Output"BANANA ORANGE APPLE MANGO"
array_map('strtoupper', $array);