source: trip-planner-front/node_modules/core-js/modules/es.math.asinh.js@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 492 bytes
Line 
1var $ = require('../internals/export');
2
3// eslint-disable-next-line es/no-math-asinh -- required for testing
4var $asinh = Math.asinh;
5var log = Math.log;
6var sqrt = Math.sqrt;
7
8function asinh(x) {
9 return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : log(x + sqrt(x * x + 1));
10}
11
12// `Math.asinh` method
13// https://tc39.es/ecma262/#sec-math.asinh
14// Tor Browser bug: Math.asinh(0) -> -0
15$({ target: 'Math', stat: true, forced: !($asinh && 1 / $asinh(0) > 0) }, {
16 asinh: asinh
17});
Note: See TracBrowser for help on using the repository browser.