MCPcopy Create free account
hub / github.com/breck7/scroll / valid

Function valid

external/.d3.js:6587–6589  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

6585
6586// During smoothing, treat any invalid value as negative infinity.
6587function valid(v) {
6588 return v == null || isNaN(v = +v) ? -Infinity : v;
6589}
6590
6591function smooth1(x, v0, v1, value) {
6592 const a = value - v0;

Callers 1

smoothLinearFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected