string* takes in String (class) inputs (#732)
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
* stringLowerFirst('ABC'); // => 'aBC'
|
||||
* ```
|
||||
*/
|
||||
export default function stringLowerFirst (value?: string | null): string {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export default function stringLowerFirst (value?: string | String | null): string {
|
||||
return value
|
||||
? value.charAt(0).toLowerCase() + value.slice(1)
|
||||
: '';
|
||||
|
||||
Reference in New Issue
Block a user