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

11 lines (9 loc) 306 B
'use strict'; // https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var $toArray = require('../internals/async-iterator-iteration').toArray; $({ target: 'AsyncIterator', proto: true, real: true }, { toArray: function toArray() { return $toArray(this); } });