Javascript Map Array Of Objects By Size