Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-alphanumeric/docs/types/index.d"

Index

Functions

Functions

Export assignment isAlphaNumeric

  • isAlphaNumeric(value: any): boolean
  • Tests whether a string contains only alphanumeric characters.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating if a string contains only alphanumeric characters

    Example

    var out = isAlphaNumeric( 'abc123def456' );
    // returns true

    Example

    var out = isAlphaNumeric( '0xffffff' );
    // returns true

    Example

    var out = isAlphaNumeric( '123' );
    // returns true

    Example

    var out = isAlphaNumeric( '' );
    // returns false

    Example

    var out = isAlphaNumeric( 123 );
    // returns false