@progress/kendo-react-charts
Version:
React Chart renders a wide range of high-quality data visualizations. KendoReact Charts package
29 lines (28 loc) • 818 B
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
function i(e, t) {
let r = e;
for (; r && r !== t; )
r = r.parentNode;
return !!r;
}
function l(e, t, r, o) {
const n = e[t];
if (n && Array.isArray(n)) {
for (const a of n)
if (!a.type || a.type !== o)
return new Error(`${r} children should be Array of type ${o.displayName}.`);
}
return null;
}
const u = (e) => e === void 0 ? !1 : !e;
export {
i as hasParent,
u as toggle,
l as validateChildren
};