export const selectShopOverviewCollections = createSelector(
[selectShopCollections],
collections => Object.keys(collections)
.map(key=>collections[key])
.map(collection => ({...collection,items: collection.items.splice(0,4)}))
)
slice
is non mutating, splice
is mutating
@media screen and ( ) { {ΒΆ width: 50%