source:
node_modules/recharts/es6/util/isWellBehavedNumber.js@
ba17441
| Last change on this file since ba17441 was a762898, checked in by , 6 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.
