UNPKG
patreon
Version:
latest (0.4.1)
0.4.1
0.4.0
0.3.0
0.1.0
0.0.2
0.0.2-2
0.0.2-1
0.0.2-0
0.0.1
Use the Patreon API via OAuth.
github.com/patreon/patreon-js
patreon/patreon-js
patreon
/
examples
/
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
); };