UNPKG

luhn-generator

Version:

A generator of numbers that passes the validation of Luhn algorithm or Luhn formula, also known as the 'modulus 10' or 'mod 10' algorithm

7 lines (6 loc) 213 B
// `SameValueZero` abstract operation // https://tc39.github.io/ecma262/#sec-samevaluezero module.exports = function (x, y) { // eslint-disable-next-line no-self-compare return x === y || x != x && y != y; };