11 lines
214 B
JavaScript
11 lines
214 B
JavaScript
'use strict';
|
|
|
|
module.exports = Object.keys || function keys(obj) {
|
|
var _keys = [];
|
|
for (var k in obj) {
|
|
if (obj.hasOwnProperty(k)) {
|
|
_keys.push(k);
|
|
}
|
|
}
|
|
return _keys;
|
|
};
|