ComedianHelper.js

export function getComedianDetails(comedians, comedianId) {
  return comedians.find((comedian) => comedian.id === comedianId);
}