is-upper-case.js 258 B

123456789101112
  1. var upperCase = require('upper-case')
  2. /**
  3. * Check if a string is upper case.
  4. *
  5. * @param {String} string
  6. * @param {String} [locale]
  7. * @return {Boolean}
  8. */
  9. module.exports = function (string, locale) {
  10. return upperCase(string, locale) === string
  11. }