Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isCreditCard

  • isCreditCard(val: string): boolean
  • Checks for a valid credit card number.

    example

    isCreditCard(378282246310005); // true isCreditCard(123); // false isCreditCard(true); // false

    Parameters

    • val: string

      The value to check.

    Returns boolean

    Whether the value is a credit card number.

Legend

  • Function

Generated using TypeDoc