我无法解决这种情况-linter向我提出了其他解决方案。这是我的原始代码:
if (arguments[0] && typeof arguments[0] === 'object') {
this.options = extendDefaultProperties(defaultProperties, arguments[0]);
}
Run Code Online (Sandbox Code Playgroud)
有什么帮助吗?先感谢您。
demo(...args) {
if (typeof args[0] === 'object' && args[0] !== null) {
this.options = extendDefaultProperties(defaultProperties, args[0]);
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4199 次 |
| 最近记录: |