mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
feat(utils.ts): add capitalizeFirstLetter function to capitalize the first letter of a string for better readability and consistency
This commit is contained in:
@@ -39,6 +39,10 @@ export function onVisible<T extends Element>(
|
|||||||
}).observe(element)
|
}).observe(element)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function capitalizeFirstLetter(str: string): string {
|
||||||
|
return str.charAt(0).toUpperCase() + str.slice(1)
|
||||||
|
}
|
||||||
|
|
||||||
export async function loadGsap(): Promise<[typeof gsap, typeof Power3]> {
|
export async function loadGsap(): Promise<[typeof gsap, typeof Power3]> {
|
||||||
const g = await import('gsap')
|
const g = await import('gsap')
|
||||||
return [g.gsap, g.Power3]
|
return [g.gsap, g.Power3]
|
||||||
|
|||||||
Reference in New Issue
Block a user