| 1 |
export const isNetworkAdmin = (): boolean => |
| 2 |
window.pagenow.endsWith('-network') |
| 3 |
|
| 4 |
export const isMacOS = () => |
| 5 |
window.navigator.userAgent.match(/mac/i) |
| 6 |
|
| 7 |
export const trimLeadingChar = (text: string, character: string): string => |
| 8 |
character === text.charAt(0) ? text.slice(1) : text |
| 9 |
|
| 10 |
export const trimTrailingChar = (text: string, character: string): string => |
| 11 |
character === text.charAt(text.length - 1) ? text.slice(0, -1) : text |
| 12 |
|