code: function (object) {
              var result = [],
                  key;
              for (key in object) {
                  if (object.hasOwnProperty(key)) {
                      result.push(key);
                  }
              }
              return result;
          }
docs: Introduced with JavaScript 1.8.5