export function findMaxLastSyncedAt ( list ) { return list . reduce ( ( a , b ) : { lastSyncedAt : string ; } => { return new Date ( a . lastSyncedAt ) > new Date ( b . lastSyncedAt ) ? a : b ; } ) . lastSyncedAt ; }