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

14 lines (11 loc) 383 B
'use strict'; require('../../modules/es.set'); require('../../modules/es.string.iterator'); require('../../modules/esnext.set.of'); require('../../modules/web.dom-collections.iterator'); var path = require('../../internals/path'); var Set = path.Set; var setOf = Set.of; module.exports = function of() { return setOf.apply(typeof this === 'function' ? this : Set, arguments); };