• Hash any value to a number that should provide the least amount of collisions.

    This method will use hashTag if it is present on an object to hash according to a method you provided.

    The logic of this hash function was roughly taken from this StackOverflow answer.

    Parameters

    • value: any

      The value to hash

    Returns number

    A hash code