UNPKG

reakit

Version:

Toolkit for building accessible rich web apps with React

6 lines (4 loc) 161 B
import { Item } from "./types"; export function getItemsInGroup(items: Item[], groupId?: string) { return items.filter((item) => item.groupId === groupId); }