Get an element of this Set which has a property of the specified name, if that property is equal to the specified value.
If no elements of this Set satisfy the condition then this method will return null
.
name | type | description |
---|---|---|
property | string |
The property name to check on the elements of this Set. |
value | * |
The value to check for. |
The first element of this Set that meets the required condition, or null
if this Set contains no elements that meet the condition.