models/helper.js
function (str) {

		var self = this;

		if ('i' !== 'I'.toLowerCase()) {
			// Thanks for http://qiita.com/niusounds/items/fff91f3f236c31ca910f
			return str.replace(/[a-z]/g, function(ch) {
				return String.fromCharCode(ch.charCodeAt(0) & ~32);
			});
		}

		return str.toUpperCase();

	}
function (str) {

		var self = this;

		if ('i' !== 'I'.toLowerCase()) {
			// Thanks for http://qiita.com/niusounds/items/fff91f3f236c31ca910f
			return str.replace(/[a-z]/g, function(ch) {
				return String.fromCharCode(ch.charCodeAt(0) & ~32);
			});
		}

		return str.toUpperCase();

	}
function ( str ) { var self = this ; if ( 'i' !== 'I' . toLowerCase ( ) ) { // Thanks for http://qiita.com/niusounds/items/fff91f3f236c31ca910f return str . replace ( / [a-z] / g , function ( ch ) { return String . fromCharCode ( ch . charCodeAt ( 0 ) & ~ 32 ) ; } ) ; } return str . toUpperCase ( ) ; }
Conver the string to upper case
@return {String} Converted string
Conver the string to upper case