13 lines
240 B
JavaScript
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;
|
|
};
|
|
}
|
|
}
|