MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / toSnake

Function toSnake

frontend/packages/common/src/hooks/http.ts:14–16  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

12}
13
14function toSnake(s: string) {
15 return s.replace(/([A-Z])/g, '_$1').toLowerCase()
16}
17
18function isObject(obj: unknown) {
19 return obj === Object(obj) && !Array.isArray(obj) && typeof obj !== 'function'

Callers 2

keysToSnakeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected