MCPcopy Create free account
hub / github.com/adopted-ember-addons/validated-changeset / objectToArray

Function objectToArray

src/utils/array-object.ts:16–24  ·  view source on GitHub ↗
(obj: Record<string, any>)

Source from the content-addressed store, hash-verified

14}
15
16export function objectToArray(obj: Record<string, any>): any[] {
17 let result: any[] = [];
18
19 for (let [index, value] of Object.entries(obj)) {
20 result[parseInt(index, 10)] = value;
21 }
22
23 return result;
24}

Callers 4

getMethod · 0.90
getMethod · 0.90
unwrapMethod · 0.90
mergeDeepFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…