@@ -36,16 +36,6 @@ function invertObject(obj, override) {
36
36
return result ;
37
37
}
38
38
39
- /**
40
- * Check if a given tag is a custom component.
41
- *
42
- * @see {@link https://github.com/facebook/react/blob/v16.6.3/packages/react-dom/src/shared/isCustomComponent.js }
43
- *
44
- * @param {string } tagName - The name of the html tag.
45
- * @param {object } props - The props being passed to the element.
46
- * @returns - Whether tag is custom component.
47
- */
48
-
49
39
var RESERVED_SVG_MATHML_ELEMENTS = new Set ( [
50
40
'annotation-xml' ,
51
41
'color-profile' ,
@@ -57,6 +47,15 @@ var RESERVED_SVG_MATHML_ELEMENTS = new Set([
57
47
'missing-glyph'
58
48
] ) ;
59
49
50
+ /**
51
+ * Check if a given tag is a custom component.
52
+ *
53
+ * @see {@link https://github.com/facebook/react/blob/v16.6.3/packages/react-dom/src/shared/isCustomComponent.js }
54
+ *
55
+ * @param {string } tagName - The name of the html tag.
56
+ * @param {object } props - The props being passed to the element.
57
+ * @returns {boolean } - Whether tag is custom component.
58
+ */
60
59
function isCustomComponent ( tagName , props ) {
61
60
if ( tagName . indexOf ( '-' ) === - 1 ) {
62
61
return props && typeof props . is === 'string' ;
@@ -121,6 +120,12 @@ function canTextBeChildOfNode(node) {
121
120
return ! ELEMENTS_WITH_NO_TEXT_CHILDREN . has ( node . name ) ;
122
121
}
123
122
123
+ /**
124
+ * Returns the first argument as is.
125
+ *
126
+ * @param {any } arg - The argument to be returned.
127
+ * @returns {any } The input argument `arg`.
128
+ */
124
129
function returnFirstArg ( arg ) {
125
130
return arg ;
126
131
}
0 commit comments