@modernman00/shared-js-lib 1.2.42 → 1.2.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Utility.js +1 -0
- package/config/version.php +1 -1
- package/package.json +1 -1
package/Utility.js
CHANGED
|
@@ -37,6 +37,7 @@ export const realTimeCheckLen = (input, maxi) => {
|
|
|
37
37
|
* @returns {string} A new string in sentence case.
|
|
38
38
|
*/
|
|
39
39
|
export const toSentenceCase = (str) => {
|
|
40
|
+
if (typeof str !== 'string') return '';
|
|
40
41
|
return str
|
|
41
42
|
.toLowerCase() // Convert the string to lowercase
|
|
42
43
|
.split(' ') // Split the string into words
|
package/config/version.php
CHANGED
package/package.json
CHANGED