Creates a deterministic hash from items.
items
The function sorts the strings, then generates a SHA-256 hash truncated to the specified number of characters.
Optional
Number of characters in the resulting hash (default: 32).
Array of strings or objects with id property to hash.
A hash string of the specified length.
Creates a deterministic hash from
items
.The function sorts the strings, then generates a SHA-256 hash truncated to the specified number of characters.