A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.telerik.com/kendo-react-ui/components/dataquery/api/groupby below:

React Data Query API groupBy<T>

New to KendoReact? Start a free 30-day trial groupBy<T>

Premium

Groups the provided data according to the specified descriptors.


import { groupBy } from '@progress/kendo-data-query';

const data = [
    { name: "Pork", category: "Food", subcategory: "Meat" },
    { name: "Pepper", category: "Food", subcategory: "Vegetables" },
    { name: "Beef", category: "Food", subcategory: "Meat" }
];

const result = groupBy(data, [{ field: "subcategory" }]);
Parameters data

T[]

The data that will be grouped.

descriptors

GroupDescriptor[]

The descriptors.

transformers

Reducer

For internal use.

originalData

T[]

For internal use.

Returns

GroupResult[] | T[]

- The grouped data.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4