Repository navigation
Expand file tree
/
Copy pathlower.ts
More file actions
43 lines (42 loc) · 1.41 KB
/
Copy pathlower.ts
File metadata and controls
43 lines (42 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import * as Internal from '@app/internal/index.ts'
/**
* Convert text to lowercase.
* @description Lowercases a single string entry.
* @param input - String to convert
* @returns Lowercase string
*/
export default function lower(input: string): string
/**
* Convert a string vector to lowercase.
* @description Lowercases every string in a vector.
* @param input - Vector of strings to convert
* @returns Vector of lowercase strings
*/
export default function lower(input: string[]): string[]
/**
* Convert a string matrix to lowercase.
* @description Lowercases every string in a matrix.
* @param input - Matrix of strings to convert
* @returns Matrix of lowercase strings
*/
export default function lower(input: string[][]): string[][]
/**
* Convert text to lowercase.
* @description Lowercases every string entry.
* @param input - String, vector, or matrix of strings to convert
* @returns Lowercase strings matching the input shape
*/
export default function lower(
input: string | string[] | string[][]
): string | string[] | string[][]
/**
* Convert text to lowercase.
* @description Lowercases every string entry.
* @param input - String, vector, or matrix of strings to convert
* @returns Lowercase strings matching the input shape
*/
export default function lower(
input: string | string[] | string[][]
): string | string[] | string[][] {
return Internal.mapper(input, (value) => value.toLowerCase())
}