dockerized_openAger/nodered/rootfs/data/node_modules/engine.io-parser/lib/keys.js

20 lines
297 B
JavaScript
Raw Permalink Normal View History

2020-10-17 16:42:50 +00:00
/**
* Gets the keys for an object.
*
* @return {Array} keys
* @api private
*/
module.exports = Object.keys || function keys (obj){
var arr = [];
var has = Object.prototype.hasOwnProperty;
for (var i in obj) {
if (has.call(obj, i)) {
arr.push(i);
}
}
return arr;
};