def unique_from_array(array):
    """takes an array and removes duplicates

    @param array: array object, the array to evaluate
    @returns: an array with unique values

    >>> unique_from_array([1, 23, 32, 1, 23, 44, 2, 1])
    [1, 23, 32, 44, 2]
    >>> unique_from_array(["uno", "dos", "uno", 2, 1])
    ["uno", "dos", 2, 1]

    """
    u = []
    for x in array:
        if x not in u:
            if x != '':
                u.append(x)

    return u