MCPcopy Create free account
hub / github.com/better-auth/examples / cleanupNonNestedPath

Function cleanupNonNestedPath

nuxt-example/components/ui/auto-form/utils.ts:133–137  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

131 return isObject(value) || Array.isArray(value);
132}
133function cleanupNonNestedPath(path: string) {
134 if (isNotNestedPath(path)) return path.replace(/\[|\]/g, "");
135
136 return path;
137}
138
139/**
140 * Gets a nested property value from an object

Callers 1

getFromPathFunction · 0.85

Calls 1

isNotNestedPathFunction · 0.85

Tested by

no test coverage detected