Skip to content

Commit

Permalink
Object.keys
Browse files Browse the repository at this point in the history
  • Loading branch information
isghe committed Mar 23, 2024
1 parent 6058ea1 commit e9f8146
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@ let gController = null;
}
},
keys(theObject) {
const returnValue = [];
for (const aProperty in theObject) {
if (theObject.hasOwnProperty(aProperty)) { // eslint-disable-line no-prototype-builtins
returnValue.push(aProperty);
}
}

return returnValue;
return Object.keys(theObject);
},
createElement(theTag, theProperties, theClassList) {
const returnValue = document.createElement(theTag);
Expand Down

0 comments on commit e9f8146

Please sign in to comment.