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

6 lines 282 B
import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof"; import toPrimitive from "@babel/runtime-corejs3/helpers/esm/toPrimitive"; export default function _toPropertyKey(arg) { var key = toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }