📜  eslint no-prototype-builtins - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:35.758000             🧑  作者: Mango

代码示例1
/*eslint no-prototype-builtins: "error"*/

var hasBarProperty = Object.prototype.hasOwnProperty.call(foo, "bar");

var isPrototypeOfBar = Object.prototype.isPrototypeOf.call(foo, bar);

var barIsEnumerable = {}.propertyIsEnumerable.call(foo, "bar");