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

32 lines (23 loc) 467 B
"use strict"; const NotImplementedError = Error("NotImplementedError"); class Collapser { isInitTypeValid() { throw NotImplementedError; } isExpressionTypeValid() { throw NotImplementedError; } getExpressionChecker() { throw NotImplementedError; } extractAssignment() { throw NotImplementedError; } addSuccessfully() { throw NotImplementedError; } isSizeSmaller() { return true; } } module.exports = Collapser;