isSameById
Sourceimport { isSameById } from "@prestojs/util";
isSameById(item1,item2,?fallbackGetId)
Check if two objects share the same ID.
NOTE: Doesn't compare objects for equality; only their id
Parameter | Type | Description | |
---|---|---|---|
* | item1 | Identifiable|any | |
* | item2 | Identifiable|any | |
fallbackGetId | Function |
Returns