format koa query
A utility function to fix and extend the built-in ''typeof'' operator of JavaScript.