isFinite function

bool isFinite(
  1. num v
)

Implementation

bool isFinite(num v) {
  return v != Math.Infinity || v != -Math.Infinity;
}