congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo For Javascript
toUpperCase
Code IndexAdd Tabnine to your IDE (free)

How to use
toUpperCase
function

Best JavaScript code snippets using toUpperCase(Showing top 15 results out of 7,281)

origin: avwo/whistle

function getMethod(method) {
 if (typeof method !== 'string') {
  return 'GET';
 }
 return method.trim().toUpperCase() || 'GET';
}
origin: ivanseidel/Is-Now-Illegal

app.express.get('/:gif.gif', apicache('10 minutes'), (req, res) => {
 const word = req.params.gif || '';
 const filename = word.toUpperCase();
 const uri = `https://storage.googleapis.com/is-now-illegal.appspot.com/gifs/${filename}.gif`;

 res.setHeader('Content-Type', 'image/gif');
 res.setHeader('Access-Control-Allow-Origin', '*');
 res.redirect(301, uri);
});
origin: keystonejs/keystone

const titleCase = (str, at = '-') => {
 if (!str) return str;

 const arr = str
  .toLowerCase()
  .split(at)
  .map(word => word.charAt(0).toUpperCase() + word.slice(1));

 return arr.join(' ');
}
origin: muicss/mui

function _camelCase(name) {
 return name.
  replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
   return offset ? letter.toUpperCase() : letter;
  }).
  replace(MOZ_HACK_REGEXP, 'Moz$1');
}
origin: strapi/strapi

function formatBytes(receivedBytes, decimals = 0) {
 const { value, unit } = byteSize(receivedBytes * 1000, { precision: decimals });

 if (!unit) {
  return '0B';
 }

 return `${value}${unit.toUpperCase()}`;
}
origin: devias-io/react-material-dashboard

name
 .replace(/\s+/, ' ')
 .split(' ')
 .slice(0, 2)
 .map((v) => v && v[0].toUpperCase())
 .join('')
origin: Netflix/pollyjs

_recognize(method, url) {
  const { host, path } = parseUrl(url);
  const registry = this._registryForHost(host);

  return registry[method.toUpperCase()].recognize(path);
 }
origin: muicss/mui

var warnBadVendoredStyleName = function (name) {
  if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
   return;
  }

  warnedStyleNames[name] = true;

  error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
 }
origin: axa-group/nlp.js

static getStemmer(locale) {
  if (!locale) {
   return new BaseStemmer();
  }
  const name = `Stemmer${locale.slice(0, 1).toUpperCase()}${locale.slice(1)}`;
  const Stemmer = LangAll[name];
  return Stemmer ? new Stemmer() : new BaseStemmer();
 }
origin: axa-group/nlp.js

static getCulture(locale) {
  const result = cultures[locale];
  if (result) {
   return result;
  }
  return locale ? `${locale}_${locale.toUpperCase()}` : 'en_US';
 }
origin: muicss/mui

function _camelCase(name) {
 return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
  return offset ? letter.toUpperCase() : letter;
 }).replace(MOZ_HACK_REGEXP, 'Moz$1');
}
origin: muicss/mui

function _camelCase(name) {
 return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
  return offset ? letter.toUpperCase() : letter;
 }).replace(MOZ_HACK_REGEXP, 'Moz$1');
}
origin: muicss/mui

function _camelCase(name) {
 return name.
  replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
   return offset ? letter.toUpperCase() : letter;
  }).
  replace(MOZ_HACK_REGEXP, 'Moz$1');
}
origin: muicss/mui

function _camelCase(name) {
 return name.
  replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
   return offset ? letter.toUpperCase() : letter;
  }).
  replace(MOZ_HACK_REGEXP, 'Moz$1');
}
origin: avwo/whistle

function getMethod(method) {
 if (typeof method !== 'string') {
  return 'GET';
 }
 return method.trim().toUpperCase() || 'GET';
}
toUpperCase

Popular in JavaScript

  • yargs
    yargs the modern, pirate-themed, successor to optimist.
  • qs
    A querystring parser that supports nesting and arrays, with a depth limit
  • async
    Higher-order functions and common patterns for asynchronous code
  • path
  • redis
    Redis client library
  • q
    A library for promises (CommonJS/Promises/A,B,D)
  • colors
    get colors in your node.js console
  • glob
    a little globber
  • readable-stream
    Streams3, a user-land copy of the stream library from Node.js
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now