来源:https://stackoverflow.com/questions/43780855/reducing-array-of-objects-to-hashmap-in-js 标签 javascript reduce