source:
node_modules/recharts/es6/util/isWellBehavedNumber.js@
a762898
| Last change on this file since a762898 was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 174 bytes | |
| Line | |
|---|---|
| 1 | export function isWellBehavedNumber(n) { |
| 2 | return Number.isFinite(n); |
| 3 | } |
| 4 | export function isPositiveNumber(n) { |
| 5 | return typeof n === 'number' && n > 0 && Number.isFinite(n); |
| 6 | } |
Note:
See TracBrowser
for help on using the repository browser.
