Transforming Data With JavaScript Maps: Extracting Values Into Arrays