(strFn, hashFunction = DEFAULTS.HASH_FUNCTION)
| 82 | */ |
| 83 | const getHash = |
| 84 | (strFn, hashFunction = DEFAULTS.HASH_FUNCTION) => |
| 85 | () => { |
| 86 | const hash = createHash(hashFunction); |
| 87 | hash.update(strFn()); |
| 88 | const digest = hash.digest(class="st">"hex"); |
| 89 | return digest.slice(0, 4); |
| 90 | }; |
| 91 | |
| 92 | /** |
| 93 | * Returns the lazy access object. |
no test coverage detected