polyfills.Object.getOwnPropertyNames.min.js Maven / Gradle / Ivy
The newest version!
Object.getOwnPropertyNames=function(e){var r,n=[],t=["length","name","arguments","caller","prototype","observe","unobserve"];if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.push(r);for(var o=0,l=t.length;o