getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne
Overload No. 1
If the number of elements that satisfy the predicate is 0 or more than 1, null will be returned
<ArrayElement>():ArrayElement | null
Parameter No. 1
Required- Generic technical name
- targetArray
- Type
- ReadonlyArray<ArrayElement>
Parameter No. 2
Required- Generic technical name
- predicate
- Type
- (arrayElement: string) => boolean
Overload No. 2
If the number of elements that satisfy the predicate is 0 or more than 1, an error will be thrown
<ArrayElement>():ArrayElement
Parameter No. 1
Required- Generic technical name
- targetArray
- Type
- ReadonlyArray<ArrayElement>
Parameter No. 2
Required- Generic technical name
- predicate
- Type
- (arrayElement: string) => boolean
Parameter No. 3
Required- Generic technical name
- options
- Type
- Options
Options
{
- mustThrowErrorIfElementNotFoundOrMatchesAreMultiple
- Type
- boolean (true only)
- Required
- Yes
Working on Content not Started Yet
We are sorry, but working of this page is not started yet. Currently, this page is existing to reserve the URI for links. Unfortunately, currently we are only able to provide some external links.