($a: string, $b: string)
| 81 | })(); |
| 82 | |
| 83 | export function compareChromeVersions($a: string, $b: string): -1 | 0 | 1 { |
| 84 | const a = $a.split('.').map((x) => parseInt(x)); |
| 85 | const b = $b.split('.').map((x) => parseInt(x)); |
| 86 | for (let i = 0; i < a.length; i++) { |
| 87 | if (a[i] !== b[i]) { |
| 88 | return a[i] < b[i] ? -1 : 1; |
| 89 | } |
| 90 | } |
| 91 | return 0; |
| 92 | } |
| 93 | |
| 94 | export const isXMLHttpRequestSupported = typeof XMLHttpRequest === 'function'; |
| 95 |
no outgoing calls
no test coverage detected