Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isBlankString

  • isBlankString(value: any): boolean
  • Tests if a value is a blank string (i.e., an empty string or a string consisting only of whitespace characters).

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating if an input value is a blank string

    Example

    var bool = isBlankString( '   ' );
    // returns true

    Example

    var bool = isBlankString( '' );
    // returns true

    Example

    var bool = isBlankString( '\t\t\t' );
    // returns true

    Example

    var bool = isBlankString( '\r\n\r\n' );
    // returns true

    Example

    var bool = isBlankString( 'beep' );
    // returns false