File: index.js

package info (click to toggle)
node-is-finite 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 148 kB
  • sloc: javascript: 19; makefile: 2
file content (5 lines) | stat: -rw-r--r-- 175 bytes parent folder | download
1
2
3
4
5
'use strict';

module.exports = Number.isFinite || function (value) {
	return !(typeof value !== 'number' || value !== value || value === Infinity || value === -Infinity);
};