There is a fairly new method available in JavaScript called flatMap. This method will let you run a mapping function on all the array values and then do run a flat method with a depth of 1.
Video about Array map( ):
Video about Array flat( ):
Video about Array filter( ):
Code from video: https://gist.github.com/prof3ssorSt3v...
En esta página del sitio puede ver el video en línea Understanding Array flatMap de Duración hora minuto segunda en buena calidad , que subió el usuario Steve Griffith - Prof3ssorSt3v3 05 junio 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 5,452 veces y le gustó 184 a los espectadores. Disfruta viendo!