import { bytesToCodePoint } from "https://deno.land/x/codepoint_iterator@v1.1.1/mod.ts";
Converts a sequence of bytes into a Unicode code point. This function is a key part of decoding UTF-8 encoded text, as it translates the raw bytes back into the characters they represent.
UTF-8 can be represented by 1 to 4 bytes. This function given the byte length of the utf-8 character calculates the code point using the 1 to 4 numbers given for the bytes of the utf-8 character.
Due to the dynamic length of utf-8 characters, its faster to just grab the bytes from the Uint8Array then calculate it's codepoint than trying to decode said Uint8Array into a string and then converting said string into codepoints.