Open techird opened 10 years ago
在 jshint 中有一个选项 freeze,阻止下面的代码:
Array.prototype.max = function() { ... }
是否要加入这条规范?
最好是允许扩展,不允许修改。。 但是好像ES5的对象方法还做不到这点 。。。 很多库还是依赖于扩展原型吧
在 jshint 中有一个选项 freeze,阻止下面的代码:
是否要加入这条规范?