(length)
| 14092 | } |
| 14093 | // generate a random alpha numeric hash: |
| 14094 | static getRandomCharacters(length) { |
| 14095 | const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" |
| 14096 | let result = "" |
| 14097 | for (let i = 0; i < length; i++) { |
| 14098 | result += characters.charAt(Math.floor(Math.random() * characters.length)) |
| 14099 | } |
| 14100 | return result |
| 14101 | } |
| 14102 | static isNodeJs() { |
| 14103 | return typeof exports !== "undefined" |
| 14104 | } |
nothing calls this directly
no outgoing calls
no test coverage detected