(property: keyof T)
| 149 | |
| 150 | export const sortAlphabeticallyByProperty = |
| 151 | <T>(property: keyof T) => |
| 152 | (a: T, b: T): number => { |
| 153 | if (a[property] < b[property]) { |
| 154 | return -1; |
| 155 | } |
| 156 | |
| 157 | if (a[property] > b[property]) { |
| 158 | return 1; |
| 159 | } |
| 160 | |
| 161 | return 0; |
| 162 | }; |
| 163 | |
| 164 | export enum UserAgent { |
| 165 | Chrome = 'Chrome', |
nothing calls this directly
no outgoing calls
no test coverage detected