mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-03 10:40:06 +00:00
10 lines
226 B
TypeScript
10 lines
226 B
TypeScript
import { SASjsRequest } from '../types'
|
|
|
|
/**
|
|
* Comparator for SASjs request timestamps.
|
|
*
|
|
*/
|
|
export const compareTimestamps = (a: SASjsRequest, b: SASjsRequest) => {
|
|
return b.timestamp.getTime() - a.timestamp.getTime()
|
|
}
|