working on toolbar

This commit is contained in:
paul
2024-09-13 16:03:58 +05:30
parent 23f1e08fbc
commit fa993f7e7b
8 changed files with 118 additions and 47 deletions

View File

@@ -11,4 +11,15 @@ export function removeDuplicateObjects(array, key) {
}
return false
})
}
/**
* capitalize the first letter
* @param {string} str
* @returns
*/
export function capitalize(str) {
console.log("Text: ", str)
return str.charAt(0).toUpperCase() + str.slice(1)
}