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

13 lines (8 loc) 396 B
var arrayWithHoles = require("./arrayWithHoles"); var iterableToArray = require("./iterableToArray"); var unsupportedIterableToArray = require("./unsupportedIterableToArray"); var nonIterableRest = require("./nonIterableRest"); function _toArray(arr) { return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); } module.exports = _toArray;