MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / normalizeVariables

Function normalizeVariables

server/modules/chartRuntimeFilters.js:55–61  ·  view source on GitHub ↗
(variables = {})

Source from the content-addressed store, hash-verified

53}
54
55function normalizeVariables(variables = {}) {
56 return Object.entries(variables || {}).reduce((acc, [key, value]) => {
57 if (value === undefined || value === null || value === "") return acc;
58 acc[key] = normalizeValue(value);
59 return acc;
60 }, {});
61}
62
63function normalizeFilter(filter = {}) {
64 if (!filter) return null;

Callers 1

sortVariableEntriesFunction · 0.85

Calls 1

normalizeValueFunction · 0.70

Tested by

no test coverage detected