the array operation of js has always been a headache for me. In the past, dealing with arrays is a variety of foreach nesting, filter,map. After writing, I always feel that there will be some optimization, but I really don t know how to optimize it bec...