Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isUNCPath

  • isUNCPath(value: any): boolean
  • Tests if a value is a UNC path.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating if a value is a UNC path

    Example

    var bool = isUNCPath( '\\\\server\\share\\foo\\bar\\baz' );
    // returns true

    Example

    var bool = isUNCPath( '/foo/bar/baz' );
    // returns false