Just added: Embedded C From Zero
TypeScript
// Return the item with the largest .updated - for ANY item type that has one.
function newest<T extends { updated: number }>(items: T[]): T {

}

const posts = [
  { title: "Intro", updated: 100 },
  { title: "Deep dive", updated: 300 },
  { title: "Errata", updated: 200 },
];
const files = [
  { path: "/a.txt", size: 10, updated: 5 },
  { path: "/b.txt", size: 20, updated: 9 },
];

const newestPost = newest(posts);
const newestFile = newest(files);