MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / manualUppercase

Function manualUppercase

code/songhop/www/lib/angular/angular.js:212–217  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

210 : s;
211};
212var manualUppercase = function(s) {
213 /* jshint bitwise: false */
214 return isString(s)
215 ? s.replace(/[a-z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) & ~32);})
216 : s;
217};
218
219
220// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish

Callers

nothing calls this directly

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected