Opal-Estate-Pro/node_modules/engine.io-parser/lib/keys.js
2019-09-13 11:27:52 +07:00

20 lines
297 B
JavaScript
Executable File

/**
* 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;
};