refactor(util) logArray