Can I rely on group$.key
from groupBy
?
#6101
Answered
by
cartant
Sawtaytoes
asked this question in
Q&A
-
I need an easy way to access the key from Here's what I have: groupBy(({
groupKey,
}) => (
groupKey
)),
mergeMap((
group$,
) => (
group$
.pipe(
pluck('data'),
toArray(),
map((
dataArray,
) => ({
dataArray,
key: (
group$
.key
),
})),
)
)), Without adding a |
Beta Was this translation helpful? Give feedback.
Answered by
cartant
Mar 8, 2021
Replies: 1 comment 1 reply
-
Yes, it's an exported type: rxjs/src/internal/operators/groupBy.ts Lines 262 to 271 in 8fdc00d |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Sawtaytoes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it's an exported type:
rxjs/src/internal/operators/groupBy.ts
Lines 262 to 271 in 8fdc00d