I saw at the first line that there's a void keyword before the function keyword, I understood the use case but it's nowadays an inappropriate way to use the function. Some eslint config (such as airbnb) avoid using void keyword, during its no effect feature.