@resee-movies/utilities - v0.11.0
    Preparing search index...

    Function toStableHash

    • A (somewhat simple) way to generate a unique identifier for any value.

      At minimum, the hashes created by this method should be stable within the bounds of a single process. Primitive values, and POJOs / arrays with primitives should be stable indefinitely. More complex structures - Maps, HTMLElements, etc. - cannot be relied on to generate the same hash across multiple processes.

      Parameters

      • arg: unknown
      • compact: boolean = false

      Returns string