Skip to content
Permalink
Browse files
fix(pwa-utils): handle non-strings in startCase (#150)
  • Loading branch information
alexkcollier authored and pi0 committed Feb 23, 2019
1 parent ee47410 commit 782217aca8ea2ece277cb20eaee54b536d55435a
Showing 1 changed file with 1 addition and 1 deletion.
@@ -31,7 +31,7 @@ function getRouteParams (options) {
}

function startCase (str) {
return str[0].toUpperCase() + str.substr(1)
return typeof str === 'string' ? str[0].toUpperCase() + str.substr(1) : str
}

module.exports = {

0 comments on commit 782217a

Please sign in to comment.