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
11 lines (7 loc) • 376 B
JavaScript
var _Array$from = require("@babel/runtime-corejs3/core-js/array/from");
var _isIterable = require("@babel/runtime-corejs3/core-js/is-iterable");
var _Symbol = require("@babel/runtime-corejs3/core-js/symbol");
function _iterableToArray(iter) {
if (typeof _Symbol !== "undefined" && _isIterable(Object(iter))) return _Array$from(iter);
}
module.exports = _iterableToArray;