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) 239 B
'use strict'; // https://github.com/mathiasbynens/String.prototype.at var $export = require('./_export'); var $at = require('./_string-at')(true); $export($export.P, 'String', { at: function at(pos) { return $at(this, pos); } });