From abd94a7f5a50f43c797a11b53549ae48fff667c3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 10 Oct 2016 03:43:44 +0200 Subject: add node_modules to address #4364 --- node_modules/is-finite/index.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 node_modules/is-finite/index.js (limited to 'node_modules/is-finite/index.js') diff --git a/node_modules/is-finite/index.js b/node_modules/is-finite/index.js new file mode 100644 index 000000000..806738750 --- /dev/null +++ b/node_modules/is-finite/index.js @@ -0,0 +1,6 @@ +'use strict'; +var numberIsNan = require('number-is-nan'); + +module.exports = Number.isFinite || function (val) { + return !(typeof val !== 'number' || numberIsNan(val) || val === Infinity || val === -Infinity); +}; -- cgit v1.2.3