common-stuff
    Preparing search index...

    Function hashCode

    • Generates a 32-bit hash of the given value.

      The hash includes the value's typeof so distinct falsy primitives don't collide (0 ≠ false ≠ null ≠ undefined ≠ ''). Values that JSON.stringify can't represent (functions, symbols, plain undefined) are still distinguished from one another via their typeof tag.

      Parameters

      • value: unknown

      Returns number