@symbo.ls/utils
Advanced tools
Comparing version 2.11.315 to 2.11.323
{ | ||
"name": "@symbo.ls/utils", | ||
"version": "2.11.315", | ||
"version": "2.11.323", | ||
"main": "src/index.js", | ||
@@ -10,3 +10,3 @@ "author": "symbo.ls", | ||
}, | ||
"gitHead": "f7e5836ff0fad163a721cd8a823e2da1a7f346ef" | ||
"gitHead": "ad959e4a3b3722e3e0f36f7a98298ea179620281" | ||
} |
@@ -39,3 +39,3 @@ 'use strict' | ||
export const toDescriptionCase = str => { | ||
export const toDescriptionCase = (str = '') => { | ||
const result = str.replace(/([A-Z])/g, ' $1') | ||
@@ -42,0 +42,0 @@ return result.charAt(0).toUpperCase() + result.slice(1) |
5642