Options
All
  • Public
  • Public/Protected
  • All
Menu

Module isRegExp

Index

References

Functions Lang

References

Renames and re-exports isRegExp

Lang Functions

  • isRegExp(value: any): value is RegExp
  • Checks if value is classified as a RegExp object.

    since

    5.5.0

    example
    isRegExp(/abc/)
    // => true

    isRegExp('/abc/')
    // => false

    Parameters

    • value: any

      The value to check.

    Returns value is RegExp

    Returns true if value is a regexp, else false.