forked from mirror/Riven
13 lines
258 B
JavaScript
13 lines
258 B
JavaScript
|
var lowerCase = require('lower-case')
|
||
|
|
||
|
/**
|
||
|
* Check if a string is lower case.
|
||
|
*
|
||
|
* @param {String} string
|
||
|
* @param {String} [locale]
|
||
|
* @return {Boolean}
|
||
|
*/
|
||
|
module.exports = function (string, locale) {
|
||
|
return lowerCase(string, locale) === string
|
||
|
}
|