MCPcopy
hub / github.com/jstat/jstat / clip

Function clip

src/vector.js:8–10  ·  view source on GitHub ↗
(arg, min, max)

Source from the content-addressed store, hash-verified

6function ascNum(a, b) { return a - b; }
7
8function clip(arg, min, max) {
9 return Math.max(min, Math.min(arg, max));
10}
11
12
13// sum of an array

Callers 1

vector.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected