Function isRegExp

  • It will determine whether the provided value is a RegExp object or not.

    Parameters

    • value: unknown

    Returns value is RegExp

    Since

    1.0.0

    Example

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

    Example

    isRegExp(2);
    // => false