You are viewing a single comment's thread. Return to all comments →
Javascript/Typescript: return (s.match(/[A-Z]/g)?.length ?? 0) + 1
return (s.match(/[A-Z]/g)?.length ?? 0) + 1
Seems like cookies are disabled on this browser, please enable them to open this website
CamelCase
You are viewing a single comment's thread. Return to all comments →
Javascript/Typescript:
return (s.match(/[A-Z]/g)?.length ?? 0) + 1