source: trip-planner-front/node_modules/core-js/internals/math-sign.js@ 6a80231

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

initial commit

  • Property mode set to 100644
File size: 297 bytes
Line 
1// `Math.sign` method implementation
2// https://tc39.es/ecma262/#sec-math.sign
3// eslint-disable-next-line es/no-math-sign -- safe
4module.exports = Math.sign || function sign(x) {
5 // eslint-disable-next-line no-self-compare -- NaN check
6 return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
7};
Note: See TracBrowser for help on using the repository browser.