Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isAbsoluteURI

  • isAbsoluteURI(value: any): boolean
  • Tests whether a value is an absolute URI.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether a value is an absolute URI

    Example

    var bool = isAbsoluteURI( 'http://example.com/' );
    // returns true

    Example

    var bool = isAbsoluteURI( 'https://example.com/docs#heading' );
    // returns true

    Example

    var bool = isAbsoluteURI( '/dashboard' );
    // returns false

    Example

    var bool = isAbsoluteURI( './png.json' );
    // returns false

    Example

    var bool = isAbsoluteURI( null );
    // returns false