function unique(array){
    let result = [];
    for(let i = 0; i < array.length; i++){
        if(indexOf(array, array[i]) === i){
            result.push(array[i]);
        }
    }
    return result;
    }
/**
    * unique: Designed to iterate over an Array and remove any duplicate elements
    * from the passed in Array argument, into a new array.
    * 
    * @param {Array} array: An array to be iterated over to access each element.
    * 
    * @return {Array}: A duplicate free array.
    */
Designed to iterate over an Array and remove any duplicate elements
from the passed in Array argument, into a new array.

@param {Array} array: An array to be iterated over to access each element.

@return {Array}: A duplicate free array.
Designed to iterate over an Array and remove any duplicate elements from the passed in Array argument into a new array . @param { Array } array : An array to be iterated over to access each element . @return { Array } : A duplicate free array .
function unique(array){
    let result = [];
    for(let i = 0; i < array.length; i++){
        if(indexOf(array, array[i]) === i){
            result.push(array[i]);
        }
    }
    return result;
    }
function unique ( array ) { let result = [ ] ; for ( let i = 0 ; i < array . length ; i ++ ) { if ( indexOf ( array , array [ i ] ) === i ) { result . push ( array [ i ] ) ; } } return result ; }
unique: Designed to iterate over an Array and remove any duplicate elements
 from the passed in Array argument, into a new array.
unique : Designed to iterate over an Array and remove any duplicate elements from the passed in Array argument into a new array .