return type == 'function' || (value && type == 'object') || false;
1 回答
![?](http://img1.sycdn.imooc.com/533e4d5b0001d57502200203-100-100.jpg)
长风秋雁
TA贡献1757条经验 获得超7个赞
可以拆解成以下写法:
if(type == 'function')
return true;
else if(value && type == 'object')
return true;
else
return false;
添加回答
举报
0/150
提交
取消