Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function capitalCase(str) {
- return `${str.charAt(0).toUpperCase()}${str.slice(1).toLowerCase()}`;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement