Presto
GitHub
Getting Started
Guides
Packages
View Model
Final Form
REST
Routing
UI
UI ANTD
Util
isPromise
useAsync
useAsyncListing
useAsyncValue
useChangeObserver
useListChangeObserver
Comparison
isDeepEqual
isEqual
Identifiable
getId
hashId
Identifiable
isIdentifiable
isSameById
Labeled
getNodeLabel
getTextLabel
isLabeled
isNodeLabeled
NodeLabeled
TextLabeled
Pagination
CursorPaginator
InferredPaginator
LimitOffsetPaginator
PageNumberPaginator
Paginator
usePaginator
Time
formatTime
parseTime
On this page
Usage
Arguments
getId
Source
import { getId } from "@prestojs/util";
getId
(
item
,
?fallbackGetId
)
Arguments:
Argument
Type
Description
*
item
any
fallbackGetId
Function
Returns:
string
|
number
|
{[fieldName: string]:
string
|
number
}