const code = (string, index = 0, offset = 0) => string.charCodeAt(index) - offset; export default code;