src/core/util/util.js
function(array) {
      if (!array) { return; }

      return array.filter(function(value, index, self) {
        return self.indexOf(value) === index;
      });
    }
function(array) {
      if (!array) { return; }

      return array.filter(function(value, index, self) {
        return self.indexOf(value) === index;
      });
    }
function ( array ) { if ( ! array ) { return ; } return array . filter ( function ( value , index , self ) { return self . indexOf ( value ) === index ; } ) ; }
Provides an easy mechanism for removing duplicates from an array.

var myArray = [1, 2, 2, 3, 3, 3, 4, 4, 4, 4];

$mdUtil.uniq(myArray) => [1, 2, 3, 4]

@param {array} array The array whose unique values should be returned.

@returns {array} A copy of the array containing only unique values.
Provides an easy mechanism for removing duplicates from an array .