* * @param {*} object * @returns {string}
(object: CacheableValue)
| 374 | * @returns {string} |
| 375 | */ |
| 376 | function objectToHashableString(object: CacheableValue): string { |
| 377 | // See https://stackoverflow.com/questions/899574/which-is-best-to-use-typeof-or-instanceof/6625960#6625960 |
| 378 | return typeof object === 'string' ? object : JSON.stringify(object); |
| 379 | } |
| 380 | |
| 381 | const DefaultHash = 'Compiler Explorer Default Version 1'; |
| 382 |
no outgoing calls
no test coverage detected