hellof2e / quark-core

Open-source, Web Components engine designed for everyone.(用原生 JS 构建跨技术栈组件 / 无框架组件)
https://quark-ecosystem.github.io/quarkc-docs/#/
MIT License
342 stars 29 forks source link

refactor(getPropertyDescriptor): simplify conditional expression #39

Closed ytxgit closed 1 year ago

ytxgit commented 1 year ago
sanqi-med commented 1 year ago

代码有点问题呢,在仔细看看

sanqi-med commented 1 year ago

isEmpty 的优化是可以理解的,isBooleanEmpty 这个函数逻辑的抽象,会让人不理解,所以isBooleanEmpty不建议抽出来