Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isCapitalized

  • isCapitalized(value: any): boolean
  • Tests if a value is a string having an uppercase first character.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether a value is a string with an uppercase first character

    Example

    var bool = isCapitalized( 'Hello' );
    // returns true

    Example

    var bool = isCapitalized( 'WORLD' );
    // returns true

    Example

    var bool = isCapitalized( '!' );
    // returns false

    Example

    var bool = isCapitalized( 'salt and light' );
    // returns false