PageRenderTime 22ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/node_modules/babel-polyfill/node_modules/core-js/library/modules/_math-log1p.js

https://bitbucket.org/worklabschd/bingle_customer2
JavaScript | 4 lines | 3 code | 0 blank | 1 comment | 2 complexity | 9315d6f81216469cc97424bd09f611b1 MD5 | raw file
1// 20.2.2.20 Math.log1p(x)
2module.exports = Math.log1p || function log1p(x) {
3  return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);
4};