Function matchOnly

  • Verify that the value matches the pattern provided, with no extra properties.

    Parameters

    Returns boolean