You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
288 B
14 lines
288 B
var has = require('./has');
|
|
if (Object.keys && !false) {
|
|
exports = Object.keys;
|
|
} else {
|
|
exports = function(obj) {
|
|
var ret = [];
|
|
for (var key in obj) {
|
|
if (has(obj, key)) ret.push(key);
|
|
}
|
|
return ret;
|
|
};
|
|
}
|
|
|
|
module.exports = exports;
|
|
|