MCPcopy
hub / github.com/ahmadawais/corona-cli / asObject

Method asObject

utils/JsonOutput.js:7–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 }
6
7 get asObject() {
8 return this.values.map(values => {
9 return values.reduce((acc, value, index) => {
10 acc[this.options.head[index]] = value;
11 return acc;
12 }, {});
13 });
14 }
15
16 push(value) {
17 this.values.push(value);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected