getId
Sourceimport  { getId } from "@prestojs/util";
getId(item,?fallbackGetId)
Get the id for an object. If object doesn't implement Identifiable then fallbackGetId
must be provided or an error will be thrown.
| Parameter | Type | Description | |
|---|---|---|---|
| * | item | Identifiable|any | Any value to get ID for  | 
| fallbackGetId | Function  | Function to return id for   | 
Returns
One of the following:
SingleIdOR
{[ fieldName: string ]: SingleId}