The difference between map and filter

filter is to meet the conditions to stay, it is to filter the original array; map is to process the original array, and map it into a new array of one-to-one mapping

Guess you like

Origin blog.csdn.net/weixin_45818290/article/details/126741523