`commit.author.charCodeAt(3).toString()` is better written as `commit.author[3]`