isPort(obj): obj is Port
Returns whether or not the given object is a Port. This method is a type guard and after using this method to test an object it can subsequently be treated as a Port if the method returns true.
Parameters
obj
any
Returns
obj is Port