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