mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-30 01:27:57 +03:00
New utils
This commit is contained in:
4
src/utils/toLowerCase.ts
Normal file
4
src/utils/toLowerCase.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export default function toLowerCase<T extends string>(str: T): Lowercase<T> {
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
||||
return str.toLowerCase() as Lowercase<T>;
|
||||
}
|
||||
Reference in New Issue
Block a user