UNPKG
match-casing
Version:
latest (2.0.1)
2.0.1
2.0.0
1.0.3
1.0.2
1.0.1
1.0.0
Match the case of `value` to that of `base`
github.com/wooorm/match-casing
wooorm/match-casing
match-casing
/
index.d.ts
9 lines
(8 loc)
•
226 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
/** * Transform the case in `value` (`string`) to match that of `base` (`string`). * *
@param
{string} value *
@param
{string} base *
@returns
{string} */
export
function
matchCasing
(
value:
string
, base:
string
):
string