massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / math-log1p.js
1 var log = Math.log;
2
3 // `Math.log1p` method implementation
4 // https://tc39.es/ecma262/#sec-math.log1p
5 // eslint-disable-next-line es/no-math-log1p -- safe
6 module.exports = Math.log1p || function log1p(x) {
7   return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : log(1 + x);
8 };