ArrayUtils.sol

Library for address array operations

indexOf

function indexOf(address[] _array, address _element) internal pure returns (uint32, bool)

Finds the index of the first occurrence of the given element.

Parameters

Name

Type

Description

_

array

address

[

]

The input array to search

_

element

address

The value to find

Return Values

Name

Type

Description

[0]

uint32

Returns (index and isIn) for the first occurrence starting from index 0

[1]

bool