HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/ZelfVerkopen/zelfverkopen.nl/node_modules/es5-ext/math/tanh/shim.js
"use strict";

var exp = Math.exp;

module.exports = function (value) {
	var num1, num2;
	if (isNaN(value)) return NaN;
	value = Number(value);
	if (value === 0) return value;
	if (value === Infinity) return 1;
	if (value === -Infinity) return -1;
	num1 = exp(value);
	if (num1 === Infinity) return 1;
	num2 = exp(-value);
	if (num2 === Infinity) return -1;
	return (num1 - num2) / (num1 + num2);
};