Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isRegExp

  • isRegExp(value: any): boolean
  • Tests if a value is a regular expression.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether value is a regular expression

    Example

    var bool = isRegExp( /\.+/ );
    // returns true

    Example

    var bool = isRegExp( {} );
    // returns false