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 (11 loc) 201 B
/** * Casts all cell values to a string. * * @param {table~row[]} rows * @returns {table~row[]} */ export default (rows) => { return rows.map((cells) => { return cells.map(String); }); };