MCPcopy Index your code
hub / github.com/simstudioai/sim / byDateDesc

Function byDateDesc

apps/sim/lib/blog/utils.ts:17–19  ·  view source on GitHub ↗
(a: T, b: T)

Source from the content-addressed store, hash-verified

15}
16
17export function byDateDesc<T extends { date: string }>(a: T, b: T) {
18 return new Date(b.date).getTime() - new Date(a.date).getTime()
19}
20
21export function stripMdxExtension(file: string) {
22 return file.replace(/\.mdx?$/i, '')

Callers 1

getRelatedPostsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected