MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / minPos

Function minPos

lib/web/CodeMirror/src/line/pos.js:19–19  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

17export function copyPos(x) {return Pos(x.line, x.ch)}
18export function maxPos(a, b) { return cmp(a, b) < 0 ? b : a }
19export function minPos(a, b) { return cmp(a, b) < 0 ? a : b }
20
21// Most of the external API clips given positions to make sure they
22// actually exist within the document.

Callers 4

fromMethod · 0.90
normalizeSelectionFunction · 0.90
showPrimarySelectionMethod · 0.90
extendToFunction · 0.90

Calls 1

cmpFunction · 0.70

Tested by

no test coverage detected