A good way to improve the readability, documentability and the usability of your functions is to use named parameters (or in case with languages like Javascript, objects and destructuring).
Fernando Hurtado Cardenas writes about this in Why you shouldn’t default to positional parameters and I have written about it in Make your function calls more readable.