.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / es.math.atanh.js
1 var $ = require('../internals/export');
2
3 var nativeAtanh = Math.atanh;
4 var log = Math.log;
5
6 // `Math.atanh` method
7 // https://tc39.es/ecma262/#sec-math.atanh
8 // Tor Browser bug: Math.atanh(-0) -> 0
9 $({ target: 'Math', stat: true, forced: !(nativeAtanh && 1 / nativeAtanh(-0) < 0) }, {
10   atanh: function atanh(x) {
11     return (x = +x) == 0 ? x : log((1 + x) / (1 - x)) / 2;
12   }
13 });