from typing import Sequence


def index(arr: Sequence[object], obj: object) -> object:
    """Return the first zero-based index of an item in an array. Or None if
    the items is not in the array.
    """
    try:
        return arr.index(obj)
    except ValueError:
        return None