.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / math-expm1.js
1 var nativeExpm1 = Math.expm1;
2 var exp = Math.exp;
3
4 // `Math.expm1` method implementation
5 // https://tc39.es/ecma262/#sec-math.expm1
6 module.exports = (!nativeExpm1
7   // Old FF bug
8   || nativeExpm1(10) > 22025.465794806719 || nativeExpm1(10) < 22025.4657948067165168
9   // Tor Browser bug
10   || nativeExpm1(-2e-17) != -2e-17
11 ) ? function expm1(x) {
12   return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : exp(x) - 1;
13 } : nativeExpm1;