UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

14 lines (13 loc) 345 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRenderPropValue = void 0; var _is = require("./is"); const getRenderPropValue = propValue => { if (!propValue) { return null; } return (0, _is.isFunction)(propValue) ? propValue() : propValue; }; exports.getRenderPropValue = getRenderPropValue;