3 lines
114 B
JavaScript
3 lines
114 B
JavaScript
|
export const capitalize = (string) => (
|
||
|
string ? `${string.slice(0, 1).toUpperCase()}${string.slice(1)}` : ''
|
||
|
);
|