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 |
Updated 2 months ago