Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isWhitespace

  • isWhitespace(x: any): boolean
  • Tests whether a string contains only white space characters.

    Parameters

    • x: any

      value to test

    Returns boolean

    boolean indicating if a string contains only white space characters

    Example

    var out = isWhitespace( '           ' );
    // returns true

    Example

    var out = isWhitespace( 'beep boop' );
    // returns false

    Example

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

    Example

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