Function isRegExp

  • Returns whether the payload is a regular expression (RegExp)

    Parameters

    • payload: unknown

    Returns payload is RegExp