MCPcopy
hub / github.com/markmap/markmap / minBy

Function minBy

packages/markmap-view/src/view.ts:41–44  ·  view source on GitHub ↗
(numbers: number[], by: (v: number) => number)

Source from the content-addressed store, hash-verified

39const linkShape = linkHorizontal();
40
41function minBy(numbers: number[], by: (v: number) => number): number {
42 const index = minIndex(numbers, by);
43 return numbers[index];
44}
45
46function stopPropagation(e: Event) {
47 e.stopPropagation();

Callers 1

ensureVisibleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected