refactor(deps): remove toArray function