MCPcopy Create free account
hub / github.com/FuncJin/Covid19-Visualization / transformHump

Function transformHump

express-app/utils/stringMethods.ts:2–2  ·  view source on GitHub ↗
(n: string)

Source from the content-addressed store, hash-verified

1/** 大小写转驼峰 */
2const transformHump = <T = any>(n: string) => n.replace(/[A-Z]/g, (s) => `_${s.toLowerCase()}`) as T
3
4const data = { transformHump }
5

Callers 2

getProvinceValueByObjectFunction · 0.85
chinaDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected