from typing import Hashable
import collections


def duplicates(arr: list[Hashable]) -> list[Hashable]:
    """Detects and returns duplicates in array"""
    return [item for item, count in collections.Counter(arr).items() if count > 1]