MCPcopy Create free account
hub / github.com/chartbrew/chartbrew / toPlainObject

Function toPlainObject

server/modules/resolveChartDatasetOptions.js:25–29  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

23];
24
25function toPlainObject(value) {
26 if (!value) return {};
27 if (typeof value.toJSON === "function") return value.toJSON();
28 return { ...value };
29}
30
31function getDatasetName(dataset) {
32 const plainDataset = toPlainObject(dataset);

Callers 2

getDatasetNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected