@tianditu/wc
Version:
Web components for tianditu, powered by Demo Macro.
23 lines (21 loc) • 480 B
JavaScript
/*!
* MIT © Demo Macro
*/
function filterProps(props) {
return Object.keys(props).reduce((acc, key) => {
if (props[key] !== undefined) {
acc[key] = props[key];
}
return acc;
}, {});
}
function onload(callback) {
if (document.readyState === "complete") {
callback();
}
else {
globalThis.addEventListener("load", callback);
}
}
export { filterProps as f, onload as o };
//# sourceMappingURL=use.js.map