fix(utils): Fix inconsistencies in utils functions.
fix(utils): Fix inconsistencies in utils functions.

Add JsDoc for important utils functions.
Clean up inconsistent naming, formatting, and logic.
Keep `perpage` in the same format always, not sometimes `perPage`. `perPage` would be preferred, but this public API is already in wide usage.

gdg-x/hub,Splaktar/hub,Splaktar/hub,gdg-x/hub