MCPcopy Create free account
hub / github.com/appacademy/Module-1-Resources / breakDownObj

Function breakDownObj

w2/d2/rest-spread-repl.js:16–18  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

14
15// * 3. breakDownObj
16const breakDownObj = (obj) => {
17 return [...Object.keys(obj), ...Object.values(obj)];
18};
19
20
21// * 4. copy array

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected