deathcap / ucfirst

uppercase first character of a string (npm module)
MIT License
6 stars 2 forks source link

Fixed so that only strings will use this function #9

Open Fleuv opened 4 years ago

Fleuv commented 4 years ago

Before the following resulted into an error:

ucfirst(null);

this should fix that, now only the function will work if it receives a string (not a String (object)) otherwise it returns the parameter v.