Skip to content

Commit

Permalink
remove Object.keys polyfill (#2259)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed Apr 17, 2020
1 parent 000a334 commit 9e61796
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,24 +275,6 @@
}());
}

if (!Object.keys) {
Object.keys = function (
o, // object
k, // key
r // result array
) {
// initialize object and result
r = [];
// iterate over object keys
for (k in o) {
// fill result array with non-prototypical keys
r.hasOwnProperty.call(o, k) && r.push(k);
}
// return result
return r;
};
}

if (HTMLSelectElement && !HTMLSelectElement.prototype.hasOwnProperty('selectedOptions')) {
Object.defineProperty(HTMLSelectElement.prototype, 'selectedOptions', {
get: function () {
Expand Down

0 comments on commit 9e61796

Please sign in to comment.