lib/index.js
function distinct(array){
  return Object.keys(array.reduce(function(current, value){
    current[value] = true;
    return current;
  }, {}));
}
function distinct(array){
  return Object.keys(array.reduce(function(current, value){
    current[value] = true;
    return current;
  }, {}));
}
function distinct ( array ) { return Object . keys ( array . reduce ( function ( current , value ) { current [ value ] = true ; return current ; } , { } ) ) ; }
only for array of strings
only for array of strings