UNPKG
react-admit-one
Version:
beta (0.1.0-beta.3)
latest (0.1.0)
0.1.0
0.1.0-beta.3
0.1.0-beta.2
0.1.0-beta.1
0.1.0-beta.0
An admit-one ticket for your React components
github.com/wsmd/react-admit-one
wsmd/react-admit-one
react-admit-one
/
dist
/
utils
/
react-types.js
9 lines
(8 loc)
•
262 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
function
isForwardRefType
(
type
) {
return
Object
.
prototype
.
hasOwnProperty
.
call
(
type
,
'render'
); }
/* istanbul ignore next */
function
isMemoType
(
type
) {
return
Object
.
prototype
.
hasOwnProperty
.
call
(
type
,
'type'
); }
export
{ isForwardRefType, isMemoType };