function hashCodePoints(key) {

    let result = 0;

    // Iterate over each character (not each byte) in the string
    for (const character of key) {

        /*
         * The `codePointAt()` method has support for multi-byte characters,
         * so that's better than `charCodeAt()` for this purpose.
         * 
         * `character` is a single-character string, so we only want the code
         * point at position 0.
         */ 
        result += character.codePointAt(0);
    }

    return result;
}
Adds up all of the code points in a string to create a numeric hash.
@param {string} key The text key to hash.
@returns {int} A numeric hash of text.
@private