Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
all_upper_i solution in Uncategorized category for All Upper I by Jon_Red
import assert from'assert';
function isAllUpper(text:string):boolean{return text===text.toUpperCase();}
// self-checks
assert.equal(isAllUpper('ALL UPPER'),true);
assert.equal(isAllUpper('all lower'),false);
assert.equal(isAllUpper('mixed UPPER and lower'),false);
assert.equal(isAllUpper(''),true);
July 1, 2020