Changeset 0c6b92a for imaps-frontend/node_modules/eslint-plugin-react/lib/util/isFirstLetterCapitalized.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/eslint-plugin-react/lib/util/isFirstLetterCapitalized.js
rd565449 r0c6b92a 3 3 /** 4 4 * Check if the first letter of a string is capitalized. 5 * @param { String} word String to check6 * @returns { Boolean} True if first letter is capitalized.5 * @param {string} word String to check 6 * @returns {boolean} True if first letter is capitalized. 7 7 */ 8 function isFirstLetterCapitalized(word) {8 module.exports = function isFirstLetterCapitalized(word) { 9 9 if (!word) { 10 10 return false; … … 12 12 const firstLetter = word.replace(/^_+/, '').charAt(0); 13 13 return firstLetter.toUpperCase() === firstLetter; 14 } 15 16 module.exports = isFirstLetterCapitalized; 14 };
Note:
See TracChangeset
for help on using the changeset viewer.