UNPKG
choo-shortcache
Version:
latest (0.0.0)
0.0.0
choo nanocomponent cache shortcut
choo-shortcache
/
example
/
node_modules
/
is-finite
/
index.js
7 lines
(5 loc)
•
212 B
JavaScript
View Raw
1
2
3
4
5
6
7
'use strict'
;
var
numberIsNan =
require
(
'number-is-nan'
);
module
.
exports
=
Number
.
isFinite
||
function
(
val
) {
return
!(
typeof
val !==
'number'
||
numberIsNan
(val) || val ===
Infinity
|| val === -
Infinity
); };