js-Polyfill_Object-hasOwnProperty

时间:2021-04-29 19:42:42
【文件属性】:
文件名称:js-Polyfill_Object-hasOwnProperty
文件大小:3KB
文件格式:ZIP
更新时间:2021-04-29 19:42:42
JavaScript js-Polyfill_Object-hasOwnProperty 测试: (function(){ function changeO() {o.newprop = o.prop;delete o.prop;} var obj1={a:1,b:false}, obj2=Object.create(obj1), o=new Object(); obj2.a=2; obj2.c='yeah'; //Polyfilled & Native: console.dir([ obj1.hasOwnProperty('a'),//true obj1.hasOwnProperty('b'),//true obj1.hasOwnProperty('c'),//false obj2.hasOwnProperty('a'),//true obj2.hasOwnProperty
【文件预览】:
js-Polyfill_Object-hasOwnProperty-master
----hasOwnProperty.js(593B)
----README.md(987B)
----hasOwnPropertyV2.js(1KB)
----hasOwnPropertyV3.js(583B)

网友评论