Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/eslint-plugin-react/lib/util/isFirstLetterCapitalized.js

    rd565449 r0c6b92a  
    33/**
    44 * Check if the first letter of a string is capitalized.
    5  * @param {String} word String to check
    6  * @returns {Boolean} True if first letter is capitalized.
     5 * @param {string} word String to check
     6 * @returns {boolean} True if first letter is capitalized.
    77 */
    8 function isFirstLetterCapitalized(word) {
     8module.exports = function isFirstLetterCapitalized(word) {
    99  if (!word) {
    1010    return false;
     
    1212  const firstLetter = word.replace(/^_+/, '').charAt(0);
    1313  return firstLetter.toUpperCase() === firstLetter;
    14 }
    15 
    16 module.exports = isFirstLetterCapitalized;
     14};
Note: See TracChangeset for help on using the changeset viewer.