(obj, keys)
| 149 | * @returns {T} the object with properties sorted by property name |
| 150 | */ |
| 151 | const sortObject = (obj, keys) => { |
| 152 | const o = /** @type {T} */ ({}); |
| 153 | for (const k of keys.sort()) { |
| 154 | o[k] = obj[k]; |
| 155 | } |
| 156 | return o; |
| 157 | }; |
| 158 | |
| 159 | /** |
| 160 | * Returns true, if the filename contains any hash. |