function formatDetails(details) {
  let result = {
    results: details,
    count: details.length,
    time: new Date().toISOString()
  };
  return result;
}
function formatDetails(details) {
  let result = {
    results: details,
    count: details.length,
    time: new Date().toISOString()
  };
  return result;
}
function formatDetails ( details ) { let result = { results : details , count : details . length , time : new Date ( ) . toISOString ( ) } ; return result ; }
Add current timestamp and results count to the output object
Add current timestamp and results count to the output object