MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / getLatestHotmailMessage

Function getLatestHotmailMessage

hotmail-utils.js:59–67  ·  view source on GitHub ↗
(messages)

Source from the content-addressed store, hash-verified

57 }
58
59 function getLatestHotmailMessage(messages) {
60 return (Array.isArray(messages) ? messages : [])
61 .slice()
62 .sort((left, right) => {
63 const leftTime = normalizeTimestamp(left?.receivedDateTime);
64 const rightTime = normalizeTimestamp(right?.receivedDateTime);
65 return rightTime - leftTime;
66 })[0] || null;
67 }
68
69 function getHotmailListToggleLabel(expanded, count = 0) {
70 const normalizedCount = Number.isFinite(Number(count)) ? Math.max(0, Number(count)) : 0;

Callers 2

Calls 1

normalizeTimestampFunction · 0.70

Tested by

no test coverage detected