#Diccionario de categorías en Astro

1 messages · Page 1 of 1 (latest)

tranquil sapphire
#

Puedes usar el reduce como en este ejemplo de MDN, para agrupar elemento por una propiedad en común:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce#grouping_objects_by_a_property

The reduce() method executes a user-supplied "reducer" callback function on each element of the array, in order, passing in the return value from the calculation on the preceding element.
The final result of running the reducer across all elements of the array is a single value.

grand lotus
#

He estado probando y como que necesito indicar el tipo de las variables, sigo sin atinarle

#

Ya lo arregle! jejeje