2018-05-06 21:36:05 +02:00

13 lines
240 B
JavaScript

if (Object.keys) {
try {
Object.keys('');
} catch (e) {
Object.keys = function(o, k, r) {
r = [];
// eslint-disable-next-line
for (k in o) r.hasOwnProperty.call(o, k) && r.push(k);
return r;
};
}
}