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 • 524 B
JavaScript
import arrayWithoutHoles from "@babel/runtime-corejs3/helpers/esm/arrayWithoutHoles";
import iterableToArray from "@babel/runtime-corejs3/helpers/esm/iterableToArray";
import unsupportedIterableToArray from "@babel/runtime-corejs3/helpers/esm/unsupportedIterableToArray";
import nonIterableSpread from "@babel/runtime-corejs3/helpers/esm/nonIterableSpread";
export default function _toConsumableArray(arr) {
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
}