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

10 lines (8 loc) 217 B
// https://github.com/ljharb/proposal-is-error var $export = require('./_export'); var cof = require('./_cof'); $export($export.S, 'Error', { isError: function isError(it) { return cof(it) === 'Error'; } });