@checkout-kit/core / luhn
Variable: luhn
ts
const luhn: (digits) => boolean;The check digit every card number carries. Catches a mistyped digit, not a stolen card.
Parameters
| Parameter | Type |
|---|---|
digits | string |
Returns
boolean