identical To One Of
Checks whether any of the inputs in other fulfils referential equality (===).
Important: collections as input may lead to unexpected behaviour. Use the spread operator on arrays:
obj.identicalToOneOf(*arrayOf(Obj2, Obj3))
Content copied to clipboard