Tests if a numeric value is a probability.
[0,1]
value to test
boolean indicating whether the value is a probability
var bool = isProbability( 0.5 ); // returns true
var bool = isProbability( 3.14 ); // returns false
var bool = isProbability( NaN ); // returns false
Tests if a numeric value is a probability.
Notes
[0,1]
.