Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isRegExp

  • isRegExp(val: unknown): boolean
  • Checks if the given value is a RegExp.

    example

    isRegexp(/regexp/gi); // true isRegexp(new RegExp('regexp' ,'gi')); // true isRegexp({}); // false isRegexp('not regexp'); // false

    Parameters

    • val: unknown

      The value to check.

    Returns boolean

    Whether the value is a RegExp.

Legend

  • Function

Generated using TypeDoc