(o: object, keys: Iterable<PropertyKey>)
| 408 | * @since 2.0.0 |
| 409 | */ |
| 410 | export const structureKeys = (o: object, keys: Iterable<PropertyKey>) => { |
| 411 | let h = 12289 |
| 412 | for (const key of keys) { |
| 413 | h ^= combine(hash(key), hash((o as any)[key])) |
| 414 | } |
| 415 | return optimize(h) |
| 416 | } |
| 417 | |
| 418 | /** |
| 419 | * Computes a structural hash for an object using Effect's object key collection. |