Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isRelativeURI

  • isRelativeURI(value: any): boolean
  • Tests whether a value is a relative URI.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether a value is a relative URI

    Example

    var bool = isRelativeURI( './beep/boop' );
    // returns true

    Example

    var bool = isRelativeURI( '/dashboard/admin' );
    // returns true

    Example

    var bool = isRelativeURI( 'http://wikipedia.org' );
    // returns false

    Example

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