1 line of code: How to capitalise a string
const capitalise = ${str.charAt(0).toUpperCase()}${str.slice(1)}`;        Enter fullscreen mode   ...
Tags: javascript, webdev, performance, codequality