MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / processProperty

Function processProperty

src/scripts/hatAdjustments/add.ts:23–32  ·  view source on GitHub ↗
(
  hatAdjustmentsList: HatAdjustments[],
  propertyName: keyof HatAdjustments
)

Source from the content-addressed store, hash-verified

21];
22
23function processProperty(
24 hatAdjustmentsList: HatAdjustments[],
25 propertyName: keyof HatAdjustments
26) {
27 let value = sum(
28 hatAdjustmentsList.map((adjustment) => adjustment[propertyName] ?? 0)
29 );
30
31 return postProcessValue(value);
32}
33
34function main() {
35 const finalMap = Object.fromEntries(

Callers 1

mainFunction · 0.70

Calls 1

postProcessValueFunction · 0.90

Tested by

no test coverage detected