Use underscore _.union method  to build resulting array.