I am trying to return the value of itemInfo[0] from within this nested function. Can anyone help how I should return this value with a callback ?
function findItem(item) {
  var itemInfo = [];
  Item.findItem(item, function(err, itemInfo){
    itemInfo[0].info = _.unescape(itemInfo[0].info);
    itemInfo[0].title = _.unescape(itemInfo[0].title);
    // console.log(itemInfo[0]);
    return itemInfo[0];
  });
};
 
     
    