JSFiddle - React, Tailwind, and code Playground
by matmuchrapna
JavaScript
Class = function() {};
var object = Class.extend({
foo: 1,
hasOwnProperty: true
});
var result = [];
for (var key in object) {
if (object.prototype.hasOwnProperty.call(object, key)) {
result.push(key)
}
}
console.log(result);