bool identical(Object a, Object b)

Check whether two references are to the same object.

Source

external bool identical(Object a, Object b);