PageRenderTime 56ms CodeModel.GetById 53ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/babel-polyfill/node_modules/core-js/library/modules/es7.math.signbit.js

https://bitbucket.org/worklabschd/bingle_customer2
JavaScript | 7 lines | 4 code | 1 blank | 2 comment | 3 complexity | abb0f9a52f7e396d946f59ef8fb208be MD5 | raw file
1// http://jfbastien.github.io/papers/Math.signbit.html
2var $export = require('./_export');
3
4$export($export.S, 'Math', { signbit: function signbit(x) {
5  // eslint-disable-next-line no-self-compare
6  return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0;
7} });