Convertendo lodash _.uniqBy () em javascript nativo

Aqui neste trecho eu estou preso como em_.uniqBy(array,iteratee),esta

iteratee pode ser uma função ou uma string ao mesmo tempoOnde colocar a condição para verificar a uniqness na propriedade porque a função itratee pode ser qualquer coisa

var sourceArray = [ { id: 1, name: 'bob' },
  { id: 1, name: 'bill' },
  { id: 1, name: 'bill' } ,
  {id: 2,name: 'silly'},
  {id: 2,name: 'billy'}]

function uniqBy (inputArray, callback) {
  return inputArray.filter(callback)
}
var inputFunc = function (item) {
  return item.name
}

// var destArray = _.uniqBy(sourceArray,'name')

var destArray = uniqBy(sourceArray, inputFunc)
console.log('destArray', destArray)

Qualquer dica sobre isso será muito apreciada.

questionAnswers(2)

yourAnswerToTheQuestion