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

12 lines (7 loc) 236 B
'use strict'; var GetIntrinsic = require('../GetIntrinsic'); var $test = GetIntrinsic('RegExp.prototype.test'); var callBind = require('./callBind'); module.exports = function regexTester(regex) { return callBind($test, regex); };