working on toolbar
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user