mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
capitalise util function
This commit is contained in:
@@ -14,3 +14,7 @@ export function getAuthHeaders(): Headers {
|
|||||||
if (!token) return new Headers();
|
if (!token) return new Headers();
|
||||||
return new Headers({ Authorization: `Bearer ${token}` });
|
return new Headers({ Authorization: `Bearer ${token}` });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function capitalise(str: string) {
|
||||||
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user