• + 0 comments

    Javascript

    function camelcase(s) {
        return [...s.matchAll(/[A-Z]/g)].length + 1
    }