Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

is-neg-zero.js 306B

1234567891011121314
  1. "use strict";
  2. /**
  3. * Returns `true` when `value` is `-0`
  4. *
  5. * @alias module:samsam.isNegZero
  6. * @param {*} value A value to examine
  7. * @returns {boolean} Returns `true` when `value` is `-0`
  8. */
  9. function isNegZero(value) {
  10. return value === 0 && 1 / value === -Infinity;
  11. }
  12. module.exports = isNegZero;