isOptionEqualToValue

abstract var isOptionEqualToValue: (option: Value, value: Value) -> Boolean?(source)

Used to determine if the option represents the given value. Uses strict equality by default. ⚠️ Both arguments need to be handled, an option can only match with one value.

Parameters

{Value} value The value to test against.