code: function uniqueArray(arr) {
    var result = [];
  
    for (var i = 0; i < arr.length; i++) {
      if (result.indexOf(arr[i]) === -1) {
        result.push(arr[i]);
      }
    }
  
    return result;
  }
docs: Filter the unique values into a new array
  @param arr