mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
isPortal() is not referenced anywhere (#11256)
This commit is contained in:
committed by
Dan Abramov
parent
56e5288b04
commit
94e8e9d88e
@@ -35,15 +35,4 @@ exports.createPortal = function(
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Verifies the object is a portal object.
|
||||
*/
|
||||
exports.isPortal = function(object: mixed): boolean {
|
||||
return (
|
||||
typeof object === 'object' &&
|
||||
object !== null &&
|
||||
object.$$typeof === REACT_PORTAL_TYPE
|
||||
);
|
||||
};
|
||||
|
||||
exports.REACT_PORTAL_TYPE = REACT_PORTAL_TYPE;
|
||||
|
||||
Reference in New Issue
Block a user