(array: T[])
| 58 | |
| 59 | // random(array) to select a random entry in array |
| 60 | export function random<T>(array: T[]) { |
| 61 | return array[Math.floor(Math.random() * array.length)]; |
| 62 | } |
| 63 | |
| 64 | const optionalReplace = (token: string) => { |
| 65 | return token === undefined || token === "" ? "" : token === "true" || token === "false" ? token : "<redacted>"; |
no outgoing calls
no test coverage detected