worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
17
node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js
generated
vendored
Normal file
17
node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = getValidReactChildren;
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
/**
|
||||
* Gets only the valid children of a component,
|
||||
* and ignores any nullish or falsy child.
|
||||
*
|
||||
* @param children the children
|
||||
*/
|
||||
function getValidReactChildren(children) {
|
||||
return React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue