mirror of https://github.com/MingweiSamuel/Riven
13 lines
258 B
JavaScript
13 lines
258 B
JavaScript
|
var upperCase = require('upper-case')
|
||
|
|
||
|
/**
|
||
|
* Check if a string is upper case.
|
||
|
*
|
||
|
* @param {String} string
|
||
|
* @param {String} [locale]
|
||
|
* @return {Boolean}
|
||
|
*/
|
||
|
module.exports = function (string, locale) {
|
||
|
return upperCase(string, locale) === string
|
||
|
}
|