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
7 lines • 499 B
JavaScript
import arrayWithHoles from "@babel/runtime-corejs3/helpers/esm/arrayWithHoles";
import iterableToArray from "@babel/runtime-corejs3/helpers/esm/iterableToArray";
import unsupportedIterableToArray from "@babel/runtime-corejs3/helpers/esm/unsupportedIterableToArray";
import nonIterableRest from "@babel/runtime-corejs3/helpers/esm/nonIterableRest";
export default function _toArray(arr) {
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
}