from typing import Iterable


def get_closest(iterable: Iterable, target):
    """Return the item in iterable that is closest to the target"""
    if not iterable or target is None:
        return None

    return min(iterable, key=lambda item: abs(item - target))