toArrayWithKey() — supabase Function Reference
Architecture documentation for the toArrayWithKey() function in helpers.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD ccd051dd_e35b_c631_0682_045c3138a74a["toArrayWithKey()"] ed861eff_c31c_7ffc_754a_851706ec4946["gen_v3()"] ed861eff_c31c_7ffc_754a_851706ec4946 -->|calls| ccd051dd_e35b_c631_0682_045c3138a74a style ccd051dd_e35b_c631_0682_045c3138a74a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/lib/refGenerator/helpers.ts lines 302–308
export const toArrayWithKey = (obj: object, keyAs: string) =>
values(
mapValues(obj, (value: any, key: string) => {
value[keyAs] = key
return value
})
)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does toArrayWithKey() do?
toArrayWithKey() is a function in the supabase codebase.
What calls toArrayWithKey()?
toArrayWithKey() is called by 1 function(s): gen_v3.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free