Node-Red configuration
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.

same-value-zero.js 235B

1234567
  1. 'use strict';
  2. // `SameValueZero` abstract operation
  3. // https://tc39.es/ecma262/#sec-samevaluezero
  4. module.exports = function (x, y) {
  5. // eslint-disable-next-line no-self-compare -- NaN check
  6. return x === y || x !== x && y !== y;
  7. };