isSameById

Source
import { 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

ParameterTypeDescription
*item1Identifiable|any
*item2Identifiable|any
fallbackGetId
Function
boolean