How can I get a returned object from this function?

his function return an object, i’m just not get value out of this:

function callObject(){
    if(validateInput.test(monthAport)){
      setInputErr(false)
      setResult(true)
      let filtered = simulate.filter(item =>
        item.tipoIndexacao == typeIn && item.tipoRendimento == typeYi )

        return filtered
    }else{
      setInputErr(true)
      }
  }

tks