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

Function isNotNestedPath

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

Source from the content-addressed store, hash-verified

120 * Checks if the path opted out of nested fields using `[fieldName]` syntax
121 */
122export function isNotNestedPath(path: string) {
123 return /^\[.+\]$/.test(path);
124}
125function isObject(obj: unknown): obj is Record<string, unknown> {
126 return (
127 obj !== null && !!obj && typeof obj === "object" && !Array.isArray(obj)

Callers 2

cleanupNonNestedPathFunction · 0.85
getFromPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected