UNPKG
@twilio-paste/paste-reakit-fork
Version:
latest (1.4.1)
1.4.1
Forked Reakit that addresses SSR hydration issues
twilio-labs/paste-reakit
@twilio-paste/paste-reakit-fork
/
src
/
Composite
/
__utils
/
getItemsInGroup.ts
6 lines
(4 loc)
•
161 B
text/typescript
View Raw
1
2
3
4
5
6
import
{
Item
}
from
"./types"
;
export
function
getItemsInGroup
(
items: Item[], groupId?: string
) {
return
items.
filter
(
(
item
) =>
item.
groupId
=== groupId); }